public class SendMessageDirectJob extends JobImpl
| Constructor and Description |
|---|
SendMessageDirectJob(RouterContext ctx,
I2NPMessage message,
Hash toPeer,
int timeoutMs,
int priority)Send a message directly to a peer. |
SendMessageDirectJob(RouterContext ctx,
I2NPMessage message,
Hash toPeer,
int timeoutMs,
int priority,
long msgIDBloomXor)Send a message directly to a peer with an XOR mask. |
SendMessageDirectJob(RouterContext ctx,
I2NPMessage message,
Hash toPeer,
Job onSend,
ReplyJob onSuccess,
Job onFail,
MessageSelector selector,
int timeoutMs,
int priority,
long msgIDBloomXor)Send a message directly to a peer with full options. |
SendMessageDirectJob(RouterContext ctx,
I2NPMessage message,
Hash toPeer,
ReplyJob onSuccess,
Job onFail,
MessageSelector selector,
int timeoutMs,
int priority)Send a message directly to a peer with reply handling. |
SendMessageDirectJob(RouterContext ctx,
I2NPMessage message,
Hash toPeer,
ReplyJob onSuccess,
Job onFail,
MessageSelector selector,
int timeoutMs,
int priority,
long msgIDBloomXor)Send a message directly to a peer with reply handling and XOR mask. |
| Modifier and Type | Method and Description |
|---|---|
String | getName()Descriptive name of the task |
void | runJob()Actually perform the task. |
dropped, getContext, getJobId, getMadeReadyOn, getTiming, madeReady, requeue, toStringpublic SendMessageDirectJob(RouterContext ctx, I2NPMessage message, Hash toPeer, int timeoutMs, int priority)
toPeer - may be ourselvespublic SendMessageDirectJob(RouterContext ctx, I2NPMessage message, Hash toPeer, int timeoutMs, int priority, long msgIDBloomXor)
toPeer - may be ourselvesmsgIDBloomXor - value to xor the messageID with before passing to the InNetMessagePool, may be 0public SendMessageDirectJob(RouterContext ctx, I2NPMessage message, Hash toPeer, Job onSend, ReplyJob onSuccess, Job onFail, MessageSelector selector, int timeoutMs, int priority, long msgIDBloomXor)
toPeer - may be ourselvesonSend - may be nullonSuccess - may be nullonFail - may be nullselector - be nullmsgIDBloomXor - value to xor the messageID with before passing to the InNetMessagePool, may be 0public SendMessageDirectJob(RouterContext ctx, I2NPMessage message, Hash toPeer, ReplyJob onSuccess, Job onFail, MessageSelector selector, int timeoutMs, int priority)
toPeer - may be ourselvesonSuccess - may be nullonFail - may be nullselector - be nullpublic SendMessageDirectJob(RouterContext ctx, I2NPMessage message, Hash toPeer, ReplyJob onSuccess, Job onFail, MessageSelector selector, int timeoutMs, int priority, long msgIDBloomXor)
toPeer - may be ourselvesonSuccess - may be nullonFail - may be nullselector - be nullmsgIDBloomXor - value to xor the messageID with before passing to the InNetMessagePool, may be 0