| Constructor and Description |
|---|
MessageReceivedJob(RouterContext ctx,
ClientConnectionRunner runner,
net.i2p.data.Destination toDest,
net.i2p.data.Destination fromDest,
net.i2p.data.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, getAddedBy, getContext, getJobId, getMadeReadyOn, getTiming, madeReady, requeue, toStringpublic MessageReceivedJob(RouterContext ctx, ClientConnectionRunner runner, net.i2p.data.Destination toDest, net.i2p.data.Destination fromDest, net.i2p.data.Payload payload, boolean sendDirect)
toDest - non-null, required to pick sessionfromDest - ignored, generally nullpublic void runJob()
Jobpublic boolean receiveMessage()