Package net.i2p.router.client
Class MessageReceivedJob
java.lang.Object
net.i2p.router.JobImpl
net.i2p.router.client.MessageReceivedJob
- All Implemented Interfaces:
Job
Async job to notify the client that a new message is available for them,
or just send it directly if specified.
-
Constructor Summary
ConstructorDescriptionMessageReceivedJob
(RouterContext ctx, ClientConnectionRunner runner, Destination toDest, Destination fromDest, Payload payload, boolean sendDirect) -
Method Summary
Methods inherited from class net.i2p.router.JobImpl
dropped, getAddedBy, getContext, getJobId, getMadeReadyOn, getTiming, madeReady, madeReady, requeue, toString
-
Constructor Details
-
MessageReceivedJob
public MessageReceivedJob(RouterContext ctx, ClientConnectionRunner runner, Destination toDest, Destination fromDest, Payload payload, boolean sendDirect) - Parameters:
toDest
- non-null, required to pick sessionfromDest
- ignored, generally null
-
-
Method Details
-
getName
Description copied from interface:Job
Descriptive name of the task -
runJob
public void runJob()Description copied from interface:Job
Actually perform the task. This call blocks until the Job is complete. -
receiveMessage
public boolean receiveMessage()Same as runJob() but with a return value- Returns:
- success
- Since:
- 0.9.29
-