public abstract class Request<RESPONSE_TYPE,TARGET_TYPE extends TargetActor> extends Object
| Constructor and Description |
|---|
Request() |
| Modifier and Type | Method and Description |
|---|---|
TARGET_TYPE |
getTargetActor(Actor parent)
Searches the parent stack for the matching TARGET_TYPE.
|
abstract boolean |
isTargetType(Actor targetActor)
Returns true when targetActor is an instanceof TARGET_TYPE
|
abstract void |
processRequest(JLPCActor targetActor,
RP rp) |
void |
send(APCRequestSource requestSource,
Actor targetActor,
RP<RESPONSE_TYPE> rp)
Send a request.
|
void |
send(APCRequestSource requestSource,
TARGET_TYPE targetActor,
RP<RESPONSE_TYPE> rp)
Send a request.
|
RESPONSE_TYPE |
send(JAFuture future,
Actor targetActor)
Send a request and waits for a response.
|
RESPONSE_TYPE |
send(JAFuture future,
TARGET_TYPE targetActor)
Send a request and waits for a response.
|
void |
sendEvent(Actor targetActor)
Send a request event.
|
void |
sendEvent(APCRequestSource requestSource,
Actor targetActor)
Send a request event.
|
void |
sendEvent(APCRequestSource requestSource,
TARGET_TYPE targetActor)
Send a request event.
|
void |
sendEvent(TARGET_TYPE targetActor)
Send a request event.
|
public abstract boolean isTargetType(Actor targetActor)
targetActor - The actor to be called.public final TARGET_TYPE getTargetActor(Actor parent)
parent - A stack of actors, or null.public final RESPONSE_TYPE send(JAFuture future, Actor targetActor) throws Exception
future - The future.targetActor - The target actor.Exception - Any uncaught exceptions raised while processing the request.public final RESPONSE_TYPE send(JAFuture future, TARGET_TYPE targetActor) throws Exception
future - The future.targetActor - The target actor.Exception - Any uncaught exceptions raised while processing the request.public final void send(APCRequestSource requestSource, Actor targetActor, RP<RESPONSE_TYPE> rp) throws Exception
requestSource - The sender of the request.targetActor - The target actor.rp - The response processor.Exception - Any uncaught exceptions raised while processing the request.public final void send(APCRequestSource requestSource, TARGET_TYPE targetActor, RP<RESPONSE_TYPE> rp) throws Exception
requestSource - The sender of the request.targetActor - The target actor.rp - The response processor.Exception - Any uncaught exceptions raised while processing the request.public final void sendEvent(Actor targetActor) throws Exception
targetActor - The target actor.Exception - Any uncaught exceptions raised while processing the request.public final void sendEvent(TARGET_TYPE targetActor) throws Exception
targetActor - The target actor.Exception - Any uncaught exceptions raised while processing the request.public final void sendEvent(APCRequestSource requestSource, Actor targetActor) throws Exception
requestSource - The sender of the request.targetActor - The target actor.Exception - Any uncaught exceptions raised while processing the request.public final void sendEvent(APCRequestSource requestSource, TARGET_TYPE targetActor) throws Exception
requestSource - The sender of the request.targetActor - The target actor.Exception - Any uncaught exceptions raised while processing the request.Copyright © 2012. All Rights Reserved.