|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.data.DataStructureImpl
net.i2p.data.DateAndFlags
net.i2p.client.SendMessageOptions
public class SendMessageOptions
Advanced options attached to a single outgoing I2CP message. Note that the packing of options into the 16-bit flags field is is subject to change. Therefore, for now, this is only recommended within RouterContext. Static methods are for OutboundClientMessageOneShotJob to decode the flags field on the router side.
Nested Class Summary | |
---|---|
static class |
SendMessageOptions.Reliability
Reliability bits 9-10 |
Field Summary |
---|
Fields inherited from class net.i2p.data.DateAndFlags |
---|
_flags |
Constructor Summary | |
---|---|
SendMessageOptions()
|
Method Summary | |
---|---|
SendMessageOptions.Reliability |
getReliability()
default Reliability.DEFAULT |
static SendMessageOptions.Reliability |
getReliability(int flags)
default Reliability.DEFAULT |
boolean |
getSendLeaseSet()
default true |
static boolean |
getSendLeaseSet(int flags)
default true |
int |
getTagsToSend()
If we are low on tags, send this many. |
static int |
getTagsToSend(int flags)
If we are low on tags, send this many. |
int |
getTagThreshold()
Low tag threshold. |
static int |
getTagThreshold(int flags)
Low tag threshold. |
void |
setReliability(SendMessageOptions.Reliability r)
default Reliability.DEFAULT |
void |
setSendLeaseSet(boolean yes)
default true |
void |
setTagsToSend(int tags)
If we are low on tags, send this many. |
void |
setTagThreshold(int tags)
Low tag threshold. |
Methods inherited from class net.i2p.data.DateAndFlags |
---|
equals, fromByteArray, getDate, getFlags, getTime, hashCode, readBytes, setDate, setDate, setFlags, toByteArray, toString, writeBytes |
Methods inherited from class net.i2p.data.DataStructureImpl |
---|
calculateHash, fromBase64, read, toBase64 |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SendMessageOptions()
Method Detail |
---|
public void setSendLeaseSet(boolean yes)
public boolean getSendLeaseSet()
public static boolean getSendLeaseSet(int flags)
public void setTagsToSend(int tags)
tags
- 0 or 2 to 128public int getTagsToSend()
public static int getTagsToSend(int flags)
public void setTagThreshold(int tags)
tags
- 0 to 90public int getTagThreshold()
public static int getTagThreshold(int flags)
public void setReliability(SendMessageOptions.Reliability r)
public SendMessageOptions.Reliability getReliability()
public static SendMessageOptions.Reliability getReliability(int flags)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |