Deprecated
use NIO / EPOLL / KQUEUE transport.
ChannelConfig for a OioSocketChannel.
SocketChannelConfig,
OioSocketChannelConfig allows the following options in the
option map:
| Name | Associated setter method |
|---|---|
ChannelOption#SO_TIMEOUT | setSoTimeout(int) |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public OioSocketChannelConfig | setAllocator(ByteBufAllocator allocator)
Redeclares io.
Deprecated
as a consequence of
Set the OioSocketChannelConfig being deprecated.
ByteBufAllocator which is used for the channel
to allocate buffers.
|
| public OioSocketChannelConfig | setAllowHalfClosure(boolean allowHalfClosure)
Redeclares io.
Deprecated
as a consequence of
Sets whether the channel should not close itself when its remote peer shuts down output to
make the connection half-closed.
OioSocketChannelConfig being deprecated.
|
| public OioSocketChannelConfig | setAutoClose(boolean autoClose)
Redeclares io.
Deprecated
as a consequence of
Sets whether the OioSocketChannelConfig being deprecated.
Channel should be closed automatically and immediately on write failure.
|
| public OioSocketChannelConfig | setAutoRead(boolean autoRead)
Redeclares io.
Deprecated
as a consequence of
Sets if OioSocketChannelConfig being deprecated.
ChannelHandlerContext#read() will be invoked automatically so that a user application doesn't
need to call it at all.
|
| public OioSocketChannelConfig | setConnectTimeoutMillis(int
the connect timeout in milliseconds.
connectTimeoutMillis)0 to disable.Redeclares io.
Deprecated
as a consequence of
Sets the connect timeout of the channel in milliseconds.
OioSocketChannelConfig being deprecated.
|
| public OioSocketChannelConfig | setKeepAlive(boolean keepAlive)
Redeclares io.
Deprecated
as a consequence of
Sets the OioSocketChannelConfig being deprecated.
StandardSocketOptions#SO_KEEPALIVE option.
|
| public OioSocketChannelConfig | setMaxMessagesPerRead(int maxMessagesPerRead)
Redeclares io.
Deprecated
|
| public OioSocketChannelConfig | setMessageSizeEstimator(MessageSizeEstimator estimator)
Redeclares io.
Deprecated
as a consequence of
Set the OioSocketChannelConfig being deprecated.
MessageSizeEstimator which is used for the channel
to detect the size of a message.
|
| public OioSocketChannelConfig | setPerformancePreferences(int connectionTime, int latency, int bandwidth)
Redeclares io.
Deprecated
as a consequence of
Sets the performance preferences as specified in
OioSocketChannelConfig being deprecated.
Socket#setPerformancePreferences(int, int, int).
|
| public OioSocketChannelConfig | setReceiveBufferSize(int receiveBufferSize)
Redeclares io.
Deprecated
as a consequence of
Sets the OioSocketChannelConfig being deprecated.
StandardSocketOptions#SO_RCVBUF option.
|
| public OioSocketChannelConfig | setRecvByteBufAllocator(RecvByteBufAllocator allocator)
Redeclares io.
Deprecated
as a consequence of
Set the OioSocketChannelConfig being deprecated.
RecvByteBufAllocator which is used for the channel to allocate receive buffers.
|
| public OioSocketChannelConfig | setReuseAddress(boolean reuseAddress)
Redeclares io.
Deprecated
as a consequence of
Sets the OioSocketChannelConfig being deprecated.
StandardSocketOptions#SO_REUSEADDR option.
|
| public OioSocketChannelConfig | setSendBufferSize(int sendBufferSize)
Redeclares io.
Deprecated
as a consequence of
Sets the OioSocketChannelConfig being deprecated.
StandardSocketOptions#SO_SNDBUF option.
|
| public OioSocketChannelConfig | setSoLinger(int soLinger)
Redeclares io.
Deprecated
as a consequence of
Sets the OioSocketChannelConfig being deprecated.
StandardSocketOptions#SO_LINGER option.
|
| public OioSocketChannelConfig | setSoTimeout(int timeout)
Deprecated
as a consequence of
Sets the maximal time a operation on the underlying socket may block.
OioSocketChannelConfig being deprecated.
|
| public OioSocketChannelConfig | setTcpNoDelay(boolean tcpNoDelay)
Redeclares io.
Deprecated
as a consequence of
Sets the OioSocketChannelConfig being deprecated.
StandardSocketOptions#TCP_NODELAY option.
|
| public OioSocketChannelConfig | setTrafficClass(int trafficClass)
Redeclares io.
Deprecated
as a consequence of
Sets the OioSocketChannelConfig being deprecated.
StandardSocketOptions#IP_TOS option.
|
| public OioSocketChannelConfig | setWriteBufferHighWaterMark(int writeBufferHighWaterMark)
Redeclares io.
Deprecated
as a consequence of
OioSocketChannelConfig being deprecated.
Sets the high water mark of the write buffer. |
| public OioSocketChannelConfig | setWriteBufferLowWaterMark(int writeBufferLowWaterMark)
Redeclares io.
Deprecated
as a consequence of
OioSocketChannelConfig being deprecated.
Sets the low water mark of the write buffer. |
| public OioSocketChannelConfig | setWriteBufferWaterMark(WriteBufferWaterMark writeBufferWaterMark)
Redeclares io.
Deprecated
as a consequence of
Set the OioSocketChannelConfig being deprecated.
WriteBufferWaterMark which is used for setting the high and low
water mark of the write buffer.
|
| public OioSocketChannelConfig | setWriteSpinCount(int writeSpinCount)
Redeclares io.
Deprecated
as a consequence of
Sets the maximum loop count for a write operation until
OioSocketChannelConfig being deprecated.
WritableByteChannel#write(ByteBuffer) returns a non-zero value.
|
| getSoTimeout | back to summary |
|---|---|
| public int getSoTimeout() Returns the maximal time a operation on the underlying socket may block. | |
| setAllocator | back to summary |
|---|---|
| public OioSocketChannelConfig setAllocator(ByteBufAllocator allocator) Redeclares io. Doc from io. Deprecated as a consequence of Set the
| |
| setAllowHalfClosure | back to summary |
|---|---|
| public OioSocketChannelConfig setAllowHalfClosure(boolean allowHalfClosure) Redeclares io. Doc from io. Deprecated as a consequence of Sets whether the channel should not close itself when its remote peer shuts down output to
make the connection half-closed. If
| |
| setAutoClose | back to summary |
|---|---|
| public OioSocketChannelConfig setAutoClose(boolean autoClose) Redeclares io. Doc from io. Deprecated as a consequence of Sets whether the
| |
| setAutoRead | back to summary |
|---|---|
| public OioSocketChannelConfig setAutoRead(boolean autoRead) Redeclares io. Doc from io. Deprecated as a consequence of Sets if
| |
| setConnectTimeoutMillis | back to summary |
|---|---|
| public OioSocketChannelConfig setConnectTimeoutMillis(int connectTimeoutMillis) Redeclares io. Doc from io. Deprecated as a consequence of Sets the connect timeout of the channel in milliseconds. If the
| |
| setKeepAlive | back to summary |
|---|---|
| public OioSocketChannelConfig setKeepAlive(boolean keepAlive) Redeclares io. Doc from io. Deprecated as a consequence of Sets the
| |
| setMaxMessagesPerRead | back to summary |
|---|---|
| public OioSocketChannelConfig setMaxMessagesPerRead(int maxMessagesPerRead) Redeclares io. Deprecated
| |
| setMessageSizeEstimator | back to summary |
|---|---|
| public OioSocketChannelConfig setMessageSizeEstimator(MessageSizeEstimator estimator) Redeclares io. Doc from io. Deprecated as a consequence of Set the
| |
| setPerformancePreferences | back to summary |
|---|---|
| public OioSocketChannelConfig setPerformancePreferences(int connectionTime, int latency, int bandwidth) Redeclares io. Doc from io. Deprecated as a consequence of Sets the performance preferences as specified in
| |
| setReceiveBufferSize | back to summary |
|---|---|
| public OioSocketChannelConfig setReceiveBufferSize(int receiveBufferSize) Redeclares io. Doc from io. Deprecated as a consequence of Sets the
| |
| setRecvByteBufAllocator | back to summary |
|---|---|
| public OioSocketChannelConfig setRecvByteBufAllocator(RecvByteBufAllocator allocator) Redeclares io. Doc from io. Deprecated as a consequence of Set the
| |
| setReuseAddress | back to summary |
|---|---|
| public OioSocketChannelConfig setReuseAddress(boolean reuseAddress) Redeclares io. Doc from io. Deprecated as a consequence of Sets the
| |
| setSendBufferSize | back to summary |
|---|---|
| public OioSocketChannelConfig setSendBufferSize(int sendBufferSize) Redeclares io. Doc from io. Deprecated as a consequence of Sets the
| |
| setSoLinger | back to summary |
|---|---|
| public OioSocketChannelConfig setSoLinger(int soLinger) Redeclares io. Doc from io. Deprecated as a consequence of Sets the
| |
| setSoTimeout | back to summary |
|---|---|
| public OioSocketChannelConfig setSoTimeout(int timeout)
Deprecated as a consequence of Sets the maximal time a operation on the underlying socket may block. | |
| setTcpNoDelay | back to summary |
|---|---|
| public OioSocketChannelConfig setTcpNoDelay(boolean tcpNoDelay) Redeclares io. Doc from io. Deprecated as a consequence of Sets the
| |
| setTrafficClass | back to summary |
|---|---|
| public OioSocketChannelConfig setTrafficClass(int trafficClass) Redeclares io. Doc from io. Deprecated as a consequence of Sets the
| |
| setWriteBufferHighWaterMark | back to summary |
|---|---|
| public OioSocketChannelConfig setWriteBufferHighWaterMark(int writeBufferHighWaterMark) Redeclares io. Doc from io. Deprecated as a consequence of
Sets the high water mark of the write buffer. If the number of bytes
queued in the write buffer exceeds this value,
| |
| setWriteBufferLowWaterMark | back to summary |
|---|---|
| public OioSocketChannelConfig setWriteBufferLowWaterMark(int writeBufferLowWaterMark) Redeclares io. Doc from io. Deprecated as a consequence of
Sets the low water mark of the write buffer. Once the number of bytes
queued in the write buffer exceeded the
high water mark and then
dropped down below this value,
| |
| setWriteBufferWaterMark | back to summary |
|---|---|
| public OioSocketChannelConfig setWriteBufferWaterMark(WriteBufferWaterMark writeBufferWaterMark) Redeclares io. Doc from io. Deprecated as a consequence of Set the
| |
| setWriteSpinCount | back to summary |
|---|---|
| public OioSocketChannelConfig setWriteSpinCount(int writeSpinCount) Redeclares io. Doc from io. Deprecated as a consequence of Sets the maximum loop count for a write operation until
| |