Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_BUF_SIZE
Default Read/Write Buf Size.
|
static long |
DEFAULT_MAX_IDLE_TIME
Default idle time for marking the connection stale which is set to 15 min.
|
static long |
DEFAULT_TIMEOUT_MILLIS
Default read/write TIMEOUT which is set to 1 min.
|
protected long |
maxIdleTimeMillis
Max idle Timeout in milliseconds.
|
protected int |
readBufSize
Read Buffer Size.
|
protected long |
readTimeoutMillis
Read Timeout in milliseconds.
|
protected int |
writeBufSize
Write Buffer Size.
|
protected long |
writeTimeoutMillis
Write Timeout in milliseconds.
|
Constructor and Description |
---|
AsyncSocketTransportConfig()
Creates a config with default parameters.
|
AsyncSocketTransportConfig(int preadBufSize,
int pwriteBufSize,
long preadTimeoutMillis,
long pwriteTimeoutMillis,
long pmaxIdleTimeMillis)
Creates a Config with custom parameters.
|
Modifier and Type | Method and Description |
---|---|
AsyncSocketTransportConfig |
clone()
Creates a copy of this config in case a local change is to be done without affecting other connections.
|
long |
getMaxIdleTimeMillis() |
int |
getReadBufSize() |
long |
getReadTimeoutMillis() |
int |
getWriteBufSize() |
long |
getWriteTimeoutMillis() |
void |
setMaxIdleTimeMillis(long pmaxIdleTimeMillis) |
void |
setReadBufSize(int preadBufSize) |
void |
setReadTimeoutMillis(long preadTimeoutMillis) |
void |
setWriteBufSize(int pwriteBufSize) |
void |
setWriteTimeoutMillis(long pwriteTimeoutMillis) |
public static final int DEFAULT_BUF_SIZE
public static final long DEFAULT_TIMEOUT_MILLIS
public static final long DEFAULT_MAX_IDLE_TIME
protected int readBufSize
protected int writeBufSize
protected long readTimeoutMillis
protected long writeTimeoutMillis
protected volatile long maxIdleTimeMillis
public AsyncSocketTransportConfig(int preadBufSize, int pwriteBufSize, long preadTimeoutMillis, long pwriteTimeoutMillis, long pmaxIdleTimeMillis)
preadBufSize
- Read Buffer SizepwriteBufSize
- Write Buffer SizepreadTimeoutMillis
- Read Timeout in millisecondspwriteTimeoutMillis
- Write Timeout in millisecondspmaxIdleTimeMillis
- Max idle Timeout in millisecondspublic AsyncSocketTransportConfig()
public AsyncSocketTransportConfig clone()
public int getReadBufSize()
public void setReadBufSize(int preadBufSize)
public int getWriteBufSize()
public void setWriteBufSize(int pwriteBufSize)
public long getReadTimeoutMillis()
public void setReadTimeoutMillis(long preadTimeoutMillis)
public long getWriteTimeoutMillis()
public void setWriteTimeoutMillis(long pwriteTimeoutMillis)
public long getMaxIdleTimeMillis()
public void setMaxIdleTimeMillis(long pmaxIdleTimeMillis)
Copyright © 2013- Suresh Mahalingam. All Rights Reserved.