net.i2p.router.message
class OutboundClientMessageJobHelper extends Object
Constructor and Description |
---|
OutboundClientMessageJobHelper() |
Modifier and Type | Method and Description |
---|---|
(package private) static PayloadGarlicConfig |
buildDataClove(RouterContext ctx,
Payload data,
Destination dest,
long expiration)
Build a clove that sends the payload to the destination
|
(package private) static PayloadGarlicConfig |
buildLeaseSetClove(RouterContext ctx,
long expiration,
LeaseSet replyLeaseSet)
Build a clove that stores the leaseSet locally
|
(package private) static GarlicMessage |
createGarlicMessage(RouterContext ctx,
long replyToken,
long expiration,
PublicKey recipientPK,
PayloadGarlicConfig dataClove,
Hash from,
Destination dest,
TunnelInfo replyTunnel,
SessionKey wrappedKey,
Set<SessionTag> wrappedTags,
boolean requireAck,
LeaseSet bundledReplyLeaseSet)
Allow the app to specify the data clove directly, which enables OutboundClientMessage to resend the
same payload (including expiration and unique id) in different garlics (down different tunnels)
This is called from OCMOSJ
|
(package private) static GarlicMessage |
createGarlicMessage(RouterContext ctx,
long replyToken,
long expiration,
PublicKey recipientPK,
Payload data,
Hash from,
Destination dest,
TunnelInfo replyTunnel,
SessionKey wrappedKey,
Set<SessionTag> wrappedTags,
boolean requireAck,
LeaseSet bundledReplyLeaseSet)
Build a garlic message that will be delivered to the router on which the target is located.
|
static GarlicMessage createGarlicMessage(RouterContext ctx, long replyToken, long expiration, PublicKey recipientPK, Payload data, Hash from, Destination dest, TunnelInfo replyTunnel, SessionKey wrappedKey, Set<SessionTag> wrappedTags, boolean requireAck, LeaseSet bundledReplyLeaseSet)
bundledReplyLeaseSet
- if specified, the given LeaseSet will be packaged with the message (allowing
much faster replies, since their netDb search will return almost instantly)static GarlicMessage createGarlicMessage(RouterContext ctx, long replyToken, long expiration, PublicKey recipientPK, PayloadGarlicConfig dataClove, Hash from, Destination dest, TunnelInfo replyTunnel, SessionKey wrappedKey, Set<SessionTag> wrappedTags, boolean requireAck, LeaseSet bundledReplyLeaseSet)
static PayloadGarlicConfig buildDataClove(RouterContext ctx, Payload data, Destination dest, long expiration)
static PayloadGarlicConfig buildLeaseSetClove(RouterContext ctx, long expiration, LeaseSet replyLeaseSet)