|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.i2p.client.streaming.I2PSocketOptionsImpl
class I2PSocketOptionsImpl
Define the configuration for streaming and verifying data on the socket.
| Field Summary | |
|---|---|
static int |
DEFAULT_BUFFER_SIZE
|
static int |
DEFAULT_CONNECT_TIMEOUT
|
static int |
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 | |
|---|---|
I2PSocketOptionsImpl()
|
|
I2PSocketOptionsImpl(I2PSocketOptions opts)
|
|
I2PSocketOptionsImpl(Properties opts)
|
|
| Method Summary | |
|---|---|
long |
getConnectTimeout()
How long we will wait for the ACK from a SYN, in milliseconds. |
protected static int |
getInt(Properties opts,
String name,
int defaultVal)
|
int |
getMaxBufferSize()
How much data will we accept that hasn't been written out yet. |
long |
getReadTimeout()
What is the longest we'll block on the input stream while waiting for more data. |
long |
getWriteTimeout()
What is the longest we'll block on the output stream while waiting for the data to flush. |
protected void |
init(Properties opts)
|
void |
setConnectTimeout(long ms)
Define how long we will wait for the ACK from a SYN, in milliseconds. |
void |
setMaxBufferSize(int numBytes)
How much data will we accept that hasn't been written out yet. |
void |
setProperties(Properties opts)
|
void |
setReadTimeout(long ms)
What is the longest we'll block on the input stream while waiting for more data. |
void |
setWriteTimeout(long ms)
What is the longest we'll block on the output stream while waiting for the data to flush. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_BUFFER_SIZE
public static final int DEFAULT_WRITE_TIMEOUT
public static final int DEFAULT_CONNECT_TIMEOUT
| Constructor Detail |
|---|
public I2PSocketOptionsImpl()
public I2PSocketOptionsImpl(I2PSocketOptions opts)
public I2PSocketOptionsImpl(Properties opts)
| Method Detail |
|---|
public void setProperties(Properties opts)
protected void init(Properties opts)
protected static int getInt(Properties opts,
String name,
int defaultVal)
public long getConnectTimeout()
getConnectTimeout in interface I2PSocketOptionspublic void setConnectTimeout(long ms)
setConnectTimeout in interface I2PSocketOptionsms - timeout in mspublic long getReadTimeout()
getReadTimeout in interface I2PSocketOptionspublic void setReadTimeout(long ms)
setReadTimeout in interface I2PSocketOptionsms - timeout in mspublic int getMaxBufferSize()
getMaxBufferSize in interface I2PSocketOptionspublic void setMaxBufferSize(int numBytes)
setMaxBufferSize in interface I2PSocketOptionsnumBytes - How much data will we accept that hasn't been written out yet.public long getWriteTimeout()
getWriteTimeout in interface I2PSocketOptionspublic void setWriteTimeout(long ms)
setWriteTimeout in interface I2PSocketOptionsms - wait time to block on the output stream while waiting for the data to flush.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||