| Constructor and Description |
|---|
MessageReceivedJob(RouterContext ctx,
ClientConnectionRunner runner,
Destination toDest,
Destination fromDest,
Payload payload,
boolean sendDirect) |
| Modifier and Type | Method and Description |
|---|---|
String | getName()Descriptive name of the task |
boolean | receiveMessage()Same as runJob() but with a return value |
void | runJob()Actually perform the task. |
dropped, getContext, getJobId, getMadeReadyOn, getTiming, madeReady, requeue, toStringpublic MessageReceivedJob(RouterContext ctx, ClientConnectionRunner runner, Destination toDest, Destination fromDest, Payload payload, boolean sendDirect)
ctx - the router contextrunner - the client connection runnertoDest - non-null, required to pick sessionfromDest - sending destination, generally nullpayload - the message payloadsendDirect - if true send directlypublic String getName()
Jobpublic boolean receiveMessage()
public void runJob()
Job