public class SendMessageOptions extends DateAndFlags
| Modifier and Type | Class and Description |
|---|---|
static class | SendMessageOptions.GzipOptionOverrides i2cp.gzip session option and size threshold for this message only. |
static class | SendMessageOptions.ReliabilityReliability bits 9-10. |
_flags| Constructor and Description |
|---|
SendMessageOptions() |
| Modifier and Type | Method and Description |
|---|---|
SendMessageOptions.GzipOption | getGzip()Gzip compression setting. |
SendMessageOptions.Reliability | getReliability()Message delivery reliability. |
static SendMessageOptions.Reliability | getReliability(int flags)Message delivery reliability from raw flags. |
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 | setGzip(boolean yes)Enable or disable gzip compression. |
void | setReliability(SendMessageOptions.Reliability r)Set message delivery reliability. |
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. |
equals, fromByteArray, getDate, getFlags, getTime, hashCode, readBytes, setDate, setDate, setFlags, toByteArray, toString, writeBytescalculateHash, fromBase64, read, toBase64public SendMessageOptions.GzipOption getGzip()
public SendMessageOptions.Reliability getReliability()
public static SendMessageOptions.Reliability getReliability(int flags)
public boolean getSendLeaseSet()
public static boolean getSendLeaseSet(int flags)
public int getTagsToSend()
public static int getTagsToSend(int flags)
public int getTagThreshold()
public static int getTagThreshold(int flags)
public void setGzip(boolean yes)
yes - GZIP_ON if true, GZIP_OFF if falsepublic void setReliability(SendMessageOptions.Reliability r)
r - reliability (default DEFAULT)public void setSendLeaseSet(boolean yes)
public void setTagsToSend(int tags)
tags - 0 or 2 to 128public void setTagThreshold(int tags)
tags - 0 to 90