DatagramChannelConfig implementation.
| Modifier and Type | Field and Description |
|---|---|
| private volatile boolean | |
| private final DatagramSocket | |
| private static final InternalLogger |
| Access | Constructor and Description |
|---|---|
| public | DefaultDatagramChannelConfig(DatagramChannel channel, DatagramSocket javaSocket)
Creates a new instance. |
| activeOnOpen | back to summary |
|---|---|
| private volatile boolean activeOnOpen | |
| javaSocket | back to summary |
|---|---|
| private final DatagramSocket javaSocket | |
| logger | back to summary |
|---|---|
| private static final InternalLogger logger | |
| DefaultDatagramChannelConfig | back to summary |
|---|---|
| public DefaultDatagramChannelConfig(DatagramChannel channel, DatagramSocket javaSocket) Creates a new instance. | |
| getInterface | back to summary |
|---|---|
| public InetAddress getInterface() Implements io. Doc from io. Gets the address of the network interface used for multicast packets.
| |
| getNetworkInterface | back to summary |
|---|---|
| public NetworkInterface getNetworkInterface() Implements io. Doc from io. Gets the
| |
| getOption | back to summary |
|---|---|
| public <T> T getOption(ChannelOption<T> option) Overrides io. Implements io. Doc from io. Return the value of the given
| |
| getOptions | back to summary |
|---|---|
| public Map Overrides io. Implements io. Doc from io. Return all set
| |
| getReceiveBufferSize | back to summary |
|---|---|
| public int getReceiveBufferSize() Implements io. Doc from io. Gets the
| |
| getSendBufferSize | back to summary |
|---|---|
| public int getSendBufferSize() Implements io. Doc from io. Gets the
| |
| getTimeToLive | back to summary |
|---|---|
| public int getTimeToLive() Implements io. Doc from io. Gets the
| |
| getTrafficClass | back to summary |
|---|---|
| public int getTrafficClass() Implements io. Doc from io. Gets the
| |
| isBroadcast | back to summary |
|---|---|
| public boolean isBroadcast() Implements io. Doc from io. Gets the
| |
| isLoopbackModeDisabled | back to summary |
|---|---|
| public boolean isLoopbackModeDisabled() Implements io. Doc from io. Gets the
| |
| isReuseAddress | back to summary |
|---|---|
| public boolean isReuseAddress() Implements io. Doc from io. Gets the
| |
| javaSocket | back to summary |
|---|---|
| protected final DatagramSocket javaSocket() | |
| setActiveOnOpen | back to summary |
|---|---|
| private void setActiveOnOpen(boolean activeOnOpen) | |
| setAllocator | back to summary |
|---|---|
| public DatagramChannelConfig setAllocator(ByteBufAllocator allocator) Overrides io. Implements io. Doc from io. Set the
| |
| setAutoClose | back to summary |
|---|---|
| public DatagramChannelConfig setAutoClose(boolean autoClose) Overrides io. Implements io. Doc from io. Sets whether the
| |
| setAutoRead | back to summary |
|---|---|
| public DatagramChannelConfig setAutoRead(boolean autoRead) Overrides io. Implements io. Doc from io. Sets if
| |
| setBroadcast | back to summary |
|---|---|
| public DatagramChannelConfig setBroadcast(boolean broadcast) Implements io. Doc from io. Sets the
| |
| setConnectTimeoutMillis | back to summary |
|---|---|
| public DatagramChannelConfig setConnectTimeoutMillis(int connectTimeoutMillis) Overrides io. Implements io. Doc from io. Sets the connect timeout of the channel in milliseconds. If the
| |
| setInterface | back to summary |
|---|---|
| public DatagramChannelConfig setInterface(InetAddress interfaceAddress) Implements io. Doc from io. Sets the address of the network interface used for multicast packets.
| |
| setLoopbackModeDisabled | back to summary |
|---|---|
| public DatagramChannelConfig setLoopbackModeDisabled(boolean loopbackModeDisabled) Implements io. Doc from io. Sets the
| |
| setMaxMessagesPerRead | back to summary |
|---|---|
| public DatagramChannelConfig setMaxMessagesPerRead(int maxMessagesPerRead) Overrides io. Implements io. Doc from io. Deprecated
| |
| setMaxMessagesPerWrite | back to summary |
|---|---|
| public DatagramChannelConfig setMaxMessagesPerWrite(int maxMessagesPerWrite) Overrides io. Doc from io. Set the maximum number of message to write per eventloop run. Once this limit is reached we will continue to process other events before trying to write the remaining messages.
| |
| setMessageSizeEstimator | back to summary |
|---|---|
| public DatagramChannelConfig setMessageSizeEstimator(MessageSizeEstimator estimator) Overrides io. Implements io. Doc from io. Set the
| |
| setNetworkInterface | back to summary |
|---|---|
| public DatagramChannelConfig setNetworkInterface(NetworkInterface networkInterface) Implements io. Doc from io. Sets the
| |
| setOption | back to summary |
|---|---|
| public <T> boolean setOption(ChannelOption<T> option, T value) Overrides io. Implements io. Doc from io. Sets a configuration property with the specified name and value. To override this method properly, you must call the super class:
public boolean setOption(ChannelOption<T> option, T value) {
if (super.setOption(option, value)) {
return true;
}
if (option.equals(additionalOption)) {
....
return true;
}
return false;
}
| |
| setReceiveBufferSize | back to summary |
|---|---|
| public DatagramChannelConfig setReceiveBufferSize(int receiveBufferSize) Implements io. Doc from io. Sets the
| |
| setRecvByteBufAllocator | back to summary |
|---|---|
| public DatagramChannelConfig setRecvByteBufAllocator(RecvByteBufAllocator allocator) Overrides io. Implements io. Doc from io. Set the
| |
| setReuseAddress | back to summary |
|---|---|
| public DatagramChannelConfig setReuseAddress(boolean reuseAddress) Implements io. Doc from io. Gets the
| |
| setSendBufferSize | back to summary |
|---|---|
| public DatagramChannelConfig setSendBufferSize(int sendBufferSize) Implements io. Doc from io. Sets the
| |
| setTimeToLive | back to summary |
|---|---|
| public DatagramChannelConfig setTimeToLive(int ttl) Implements io. Doc from io. Sets the
| |
| setTrafficClass | back to summary |
|---|---|
| public DatagramChannelConfig setTrafficClass(int trafficClass) Implements io. Doc from io. Sets the
| |
| setWriteBufferHighWaterMark | back to summary |
|---|---|
| public DatagramChannelConfig setWriteBufferHighWaterMark(int writeBufferHighWaterMark) Overrides io. Implements io. Doc from io.
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 DatagramChannelConfig setWriteBufferLowWaterMark(int writeBufferLowWaterMark) Overrides io. Implements io. Doc from io.
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 DatagramChannelConfig setWriteBufferWaterMark(WriteBufferWaterMark writeBufferWaterMark) Overrides io. Implements io. Doc from io. Set the
| |
| setWriteSpinCount | back to summary |
|---|---|
| public DatagramChannelConfig setWriteSpinCount(int writeSpinCount) Overrides io. Implements io. Doc from io. Sets the maximum loop count for a write operation until
| |