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