Package net.i2p.router.client
Class MessageReceivedJob
- java.lang.Object
-
- net.i2p.router.JobImpl
-
- net.i2p.router.client.MessageReceivedJob
-
-
Constructor Summary
Constructors Constructor Description MessageReceivedJob(RouterContext ctx, ClientConnectionRunner runner, Destination toDest, Destination fromDest, Payload payload, boolean sendDirect)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
Descriptive name of the taskboolean
receiveMessage()
Same as runJob() but with a return valuevoid
runJob()
Actually perform the task.-
Methods inherited from class net.i2p.router.JobImpl
dropped, getAddedBy, getContext, getJobId, getMadeReadyOn, getTiming, madeReady, requeue, toString
-
-
-
-
Constructor Detail
-
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 Detail
-
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
-
-