|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.client.streaming.I2PSocketOptionsImpl
net.i2p.client.streaming.ConnectionOptions
class ConnectionOptions
Define the current options for the con (and allow custom tweaking midstream)
Fields inherited from class net.i2p.client.streaming.I2PSocketOptionsImpl |
---|
DEFAULT_BUFFER_SIZE, DEFAULT_CONNECT_TIMEOUT, DEFAULT_WRITE_TIMEOUT |
Fields inherited from interface net.i2p.client.streaming.I2PSocketOptions |
---|
PROP_BUFFER_SIZE, PROP_CONNECT_TIMEOUT, PROP_READ_TIMEOUT, PROP_WRITE_TIMEOUT |
Constructor Summary | |
---|---|
ConnectionOptions()
|
|
ConnectionOptions(ConnectionOptions opts)
|
|
ConnectionOptions(I2PSocketOptions opts)
|
|
ConnectionOptions(Properties opts)
|
Method Summary | |
---|---|
Set<Hash> |
getAccessList()
|
boolean |
getAnswerPings()
Do we respond to a ping? |
Set<Hash> |
getBlacklist()
|
int |
getChoke()
how long we want to wait before any data is transferred on the connection in either direction |
int |
getCongestionAvoidanceGrowthRateFactor()
When we're in congestion avoidance, we grow the window size at the rate of 1/(windowSize*factor). |
int |
getConnectDelay()
how long will we wait after instantiating a new con before actually attempting to connect. |
int |
getInactivityAction()
|
int |
getInactivityTimeout()
What period of inactivity qualifies as "too long"? |
int |
getInboundBufferSize()
how much data are we willing to accept in our buffer? |
int |
getMaxConnsPerDay()
|
int |
getMaxConnsPerHour()
|
int |
getMaxConnsPerMinute()
all of these are @since 0.7.14; no public setters |
int |
getMaxMessageSize()
What is the largest message we want to send or receive? |
int |
getMaxResends()
How many times will we try to send a message before giving up? |
int |
getMaxTotalConnsPerDay()
|
int |
getMaxTotalConnsPerHour()
|
int |
getMaxTotalConnsPerMinute()
|
int |
getMaxWindowSize()
|
int |
getProfile()
What profile do we want to use for this connection? TODO: Only bulk is supported so far. |
int |
getReceiveWindow()
Deprecated. This doesn't appear to be used. |
boolean |
getRequireFullySigned()
Do we want all packets in both directions to be signed, or can we deal with signatures on the SYN and FIN packets only? There is no property name defined for this, so it's safe to say this is unused and always false. |
int |
getResendDelay()
How long after sending a packet will we wait before resending? |
int |
getRTO()
|
int |
getRTT()
What to set the round trip time estimate to (in milliseconds) |
(package private) int |
getRTTDev()
for debugging @since 0.7.13 |
int |
getRTTTrend()
If we have 3 consecutive rtt increases, we are trending upwards (1), or if we have 3 consecutive rtt decreases, we are trending downwards (-1), else we're stable. |
int |
getSendAckDelay()
if there are packets we haven't ACKed yet and we don't receive _receiveWindow messages before (_lastSendTime+_sendAckDelay), send an ACK of what we have received so far. |
int |
getSlowStartGrowthRateFactor()
When we're in slow start, we grow the window size at the rate of 1/(factor). |
int |
getWindowSize()
How many messages will we send before waiting for an ACK? |
protected void |
init(Properties opts)
|
boolean |
isAccessListEnabled()
|
boolean |
isBlacklistEnabled()
|
void |
setAnswerPings(boolean yes)
|
void |
setChoke(int ms)
|
void |
setCongestionAvoidanceGrowthRateFactor(int factor)
|
void |
setConnectDelay(int delayMs)
|
void |
setInactivityAction(int action)
|
void |
setInactivityTimeout(int timeout)
|
void |
setInboundBufferSize(int bytes)
|
void |
setMaxMessageSize(int bytes)
|
void |
setMaxResends(int numSends)
|
void |
setMaxWindowSize(int msgs)
|
void |
setProfile(int profile)
|
void |
setProperties(Properties opts)
|
void |
setReceiveWindow(int numMsgs)
|
void |
setRequireFullySigned(boolean sign)
unused, see above |
void |
setResendDelay(int ms)
|
void |
setRTT(int ms)
|
void |
setSendAckDelay(int delayMs)
Unused except here, so expect the default initial delay of 2000 ms unless set by the user to remain constant. |
void |
setSlowStartGrowthRateFactor(int factor)
|
void |
setWindowSize(int numMsgs)
|
String |
toString()
|
void |
updateRTT(int measuredValue)
|
Methods inherited from class net.i2p.client.streaming.I2PSocketOptionsImpl |
---|
getConnectTimeout, getInt, getMaxBufferSize, getReadTimeout, getWriteTimeout, setConnectTimeout, setMaxBufferSize, setReadTimeout, setWriteTimeout |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int PROFILE_BULK
public static final int PROFILE_INTERACTIVE
public static final int INACTIVITY_ACTION_NOOP
public static final int INACTIVITY_ACTION_DISCONNECT
public static final int INACTIVITY_ACTION_SEND
public static final String PROP_CONNECT_DELAY
public static final String PROP_PROFILE
public static final String PROP_MAX_MESSAGE_SIZE
public static final String PROP_MAX_RESENDS
public static final String PROP_INITIAL_RTT
public static final String PROP_INITIAL_RESEND_DELAY
public static final String PROP_INITIAL_ACK_DELAY
public static final String PROP_INITIAL_WINDOW_SIZE
public static final String PROP_INITIAL_RECEIVE_WINDOW
public static final String PROP_INACTIVITY_TIMEOUT
public static final String PROP_INACTIVITY_ACTION
public static final String PROP_MAX_WINDOW_SIZE
public static final String PROP_CONGESTION_AVOIDANCE_GROWTH_RATE_FACTOR
public static final String PROP_SLOW_START_GROWTH_RATE_FACTOR
public static final String PROP_ANSWER_PINGS
public static final String PROP_ENABLE_ACCESS_LIST
public static final String PROP_ENABLE_BLACKLIST
public static final String PROP_ACCESS_LIST
public static final String PROP_MAX_CONNS_MIN
public static final String PROP_MAX_CONNS_HOUR
public static final String PROP_MAX_CONNS_DAY
public static final String PROP_MAX_TOTAL_CONNS_MIN
public static final String PROP_MAX_TOTAL_CONNS_HOUR
public static final String PROP_MAX_TOTAL_CONNS_DAY
static final int INITIAL_WINDOW_SIZE
static final int DEFAULT_MAX_SENDS
public static final int DEFAULT_INITIAL_RTT
public static final int DEFAULT_INITIAL_ACK_DELAY
static final int MIN_WINDOW_SIZE
public static final int DEFAULT_MAX_MESSAGE_SIZE
public static final int MIN_MESSAGE_SIZE
Constructor Detail |
---|
public ConnectionOptions()
public ConnectionOptions(Properties opts)
public ConnectionOptions(I2PSocketOptions opts)
public ConnectionOptions(ConnectionOptions opts)
Method Detail |
---|
protected void init(Properties opts)
init
in class I2PSocketOptionsImpl
public void setProperties(Properties opts)
setProperties
in class I2PSocketOptionsImpl
public int getConnectDelay()
public void setConnectDelay(int delayMs)
public boolean getRequireFullySigned()
public void setRequireFullySigned(boolean sign)
public boolean getAnswerPings()
public void setAnswerPings(boolean yes)
public int getWindowSize()
public void setWindowSize(int numMsgs)
public int getReceiveWindow()
public void setReceiveWindow(int numMsgs)
public int getRTT()
public void setRTT(int ms)
public int getRTO()
int getRTTDev()
public int getRTTTrend()
public void updateRTT(int measuredValue)
public int getResendDelay()
public void setResendDelay(int ms)
public int getSendAckDelay()
public void setSendAckDelay(int delayMs)
public int getMaxMessageSize()
public void setMaxMessageSize(int bytes)
public int getChoke()
public void setChoke(int ms)
public int getProfile()
public void setProfile(int profile)
public int getMaxResends()
public void setMaxResends(int numSends)
public int getInactivityTimeout()
public void setInactivityTimeout(int timeout)
public int getInactivityAction()
public void setInactivityAction(int action)
public int getMaxWindowSize()
public void setMaxWindowSize(int msgs)
public int getInboundBufferSize()
public void setInboundBufferSize(int bytes)
public int getCongestionAvoidanceGrowthRateFactor()
public void setCongestionAvoidanceGrowthRateFactor(int factor)
public int getSlowStartGrowthRateFactor()
public void setSlowStartGrowthRateFactor(int factor)
public int getMaxConnsPerMinute()
public int getMaxConnsPerHour()
public int getMaxConnsPerDay()
public int getMaxTotalConnsPerMinute()
public int getMaxTotalConnsPerHour()
public int getMaxTotalConnsPerDay()
public boolean isAccessListEnabled()
public boolean isBlacklistEnabled()
public Set<Hash> getAccessList()
public Set<Hash> getBlacklist()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |