ChannelConfig for a DatagramChannel.
ChannelConfig,
DatagramChannelConfig allows the following options in the option map:
| Modifier and Type | Method and Description |
|---|---|
| public InetAddress | |
| public NetworkInterface | |
| public int | |
| public int | |
| public int | |
| public int | |
| public boolean | |
| public boolean | Returns: true if and only if the loopback mode has been disabledGets the |
| public boolean | |
| public DatagramChannelConfig | setAllocator(ByteBufAllocator allocator)
Redeclares io. ByteBufAllocator which is used for the channel
to allocate buffers.
|
| public DatagramChannelConfig | setAutoClose(boolean autoClose)
Redeclares io. Channel should be closed automatically and immediately on write failure.
|
| public DatagramChannelConfig | setAutoRead(boolean autoRead)
Redeclares io. ChannelHandlerContext#read() will be invoked automatically so that a user application doesn't
need to call it at all.
|
| public DatagramChannelConfig | |
| public DatagramChannelConfig | setConnectTimeoutMillis(int
the connect timeout in milliseconds.
connectTimeoutMillis)0 to disable.Redeclares io. |
| public DatagramChannelConfig | setInterface(InetAddress interfaceAddress)
Sets the address of the network interface used for multicast packets. |
| public DatagramChannelConfig | setLoopbackModeDisabled(boolean
true if and only if the loopback mode has been disabledSets the |
| public DatagramChannelConfig | setMaxMessagesPerRead(int maxMessagesPerRead)
Redeclares io.
Deprecated
|
| public DatagramChannelConfig | setMessageSizeEstimator(MessageSizeEstimator estimator)
Redeclares io. MessageSizeEstimator which is used for the channel
to detect the size of a message.
|
| public DatagramChannelConfig | setNetworkInterface(NetworkInterface networkInterface)
Sets the |
| public DatagramChannelConfig | |
| public DatagramChannelConfig | setRecvByteBufAllocator(RecvByteBufAllocator allocator)
Redeclares io. RecvByteBufAllocator which is used for the channel to allocate receive buffers.
|
| public DatagramChannelConfig | |
| public DatagramChannelConfig | |
| public DatagramChannelConfig | |
| public DatagramChannelConfig | |
| public DatagramChannelConfig | setWriteBufferWaterMark(WriteBufferWaterMark writeBufferWaterMark)
Redeclares io. WriteBufferWaterMark which is used for setting the high and low
water mark of the write buffer.
|
| public DatagramChannelConfig | setWriteSpinCount(int writeSpinCount)
Redeclares io. WritableByteChannel#write(ByteBuffer) returns a non-zero value.
|
| getInterface | back to summary |
|---|---|
| public InetAddress getInterface() Gets the address of the network interface used for multicast packets. | |
| getNetworkInterface | back to summary |
|---|---|
| public NetworkInterface getNetworkInterface() Gets the | |
| getReceiveBufferSize | back to summary |
|---|---|
| public int getReceiveBufferSize() Gets the | |
| getSendBufferSize | back to summary |
|---|---|
| public int getSendBufferSize() Gets the | |
| getTimeToLive | back to summary |
|---|---|
| public int getTimeToLive() Gets the | |
| getTrafficClass | back to summary |
|---|---|
| public int getTrafficClass() Gets the | |
| isBroadcast | back to summary |
|---|---|
| public boolean isBroadcast() Gets the | |
| isLoopbackModeDisabled | back to summary |
|---|---|
| public boolean isLoopbackModeDisabled() Gets the
| |
| isReuseAddress | back to summary |
|---|---|
| public boolean isReuseAddress() Gets the | |
| setAllocator | back to summary |
|---|---|
| public DatagramChannelConfig setAllocator(ByteBufAllocator allocator) Redeclares io. Doc from io. Set the
| |
| setAutoClose | back to summary |
|---|---|
| public DatagramChannelConfig setAutoClose(boolean autoClose) Redeclares io. Doc from io. Sets whether the
| |
| setAutoRead | back to summary |
|---|---|
| public DatagramChannelConfig setAutoRead(boolean autoRead) Redeclares io. Doc from io. Sets if
| |
| setBroadcast | back to summary |
|---|---|
| public DatagramChannelConfig setBroadcast(boolean broadcast) Sets the | |
| setConnectTimeoutMillis | back to summary |
|---|---|
| public DatagramChannelConfig setConnectTimeoutMillis(int connectTimeoutMillis) Redeclares io. Doc from io. Sets the connect timeout of the channel in milliseconds. If the
| |
| setInterface | back to summary |
|---|---|
| public DatagramChannelConfig setInterface(InetAddress interfaceAddress) Sets the address of the network interface used for multicast packets. | |
| setLoopbackModeDisabled | back to summary |
|---|---|
| public DatagramChannelConfig setLoopbackModeDisabled(boolean loopbackModeDisabled) Sets the
| |
| setMaxMessagesPerRead | back to summary |
|---|---|
| public DatagramChannelConfig setMaxMessagesPerRead(int maxMessagesPerRead) Redeclares io. Deprecated
| |
| setMessageSizeEstimator | back to summary |
|---|---|
| public DatagramChannelConfig setMessageSizeEstimator(MessageSizeEstimator estimator) Redeclares io. Doc from io. Set the
| |
| setNetworkInterface | back to summary |
|---|---|
| public DatagramChannelConfig setNetworkInterface(NetworkInterface networkInterface) Sets the | |
| setReceiveBufferSize | back to summary |
|---|---|
| public DatagramChannelConfig setReceiveBufferSize(int receiveBufferSize) Sets the | |
| setRecvByteBufAllocator | back to summary |
|---|---|
| public DatagramChannelConfig setRecvByteBufAllocator(RecvByteBufAllocator allocator) Redeclares io. Doc from io. Set the
| |
| setReuseAddress | back to summary |
|---|---|
| public DatagramChannelConfig setReuseAddress(boolean reuseAddress) Gets the | |
| setSendBufferSize | back to summary |
|---|---|
| public DatagramChannelConfig setSendBufferSize(int sendBufferSize) Sets the | |
| setTimeToLive | back to summary |
|---|---|
| public DatagramChannelConfig setTimeToLive(int ttl) Sets the | |
| setTrafficClass | back to summary |
|---|---|
| public DatagramChannelConfig setTrafficClass(int trafficClass) Sets the | |
| setWriteBufferWaterMark | back to summary |
|---|---|
| public DatagramChannelConfig setWriteBufferWaterMark(WriteBufferWaterMark writeBufferWaterMark) Redeclares io. Doc from io. Set the
| |
| setWriteSpinCount | back to summary |
|---|---|
| public DatagramChannelConfig setWriteSpinCount(int writeSpinCount) Redeclares io. Doc from io. Sets the maximum loop count for a write operation until
| |