NioDatagramChannelConfig implementation.
| Modifier and Type | Field and Description |
|---|---|
| private static final Method | |
| private static final Object | |
| private static final Object | |
| private static final Object | |
| private final DatagramChannel | |
| private static final Method |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| GET_OPTION | back to summary |
|---|---|
| private static final Method GET_OPTION | |
| IP_MULTICAST_IF | back to summary |
|---|---|
| private static final Object IP_MULTICAST_IF | |
| IP_MULTICAST_LOOP | back to summary |
|---|---|
| private static final Object IP_MULTICAST_LOOP | |
| IP_MULTICAST_TTL | back to summary |
|---|---|
| private static final Object IP_MULTICAST_TTL | |
| javaChannel | back to summary |
|---|---|
| private final DatagramChannel javaChannel | |
| SET_OPTION | back to summary |
|---|---|
| private static final Method SET_OPTION | |
| NioDatagramChannelConfig | back to summary |
|---|---|
| pack-priv NioDatagramChannelConfig(NioDatagramChannel channel, DatagramChannel javaChannel) | |
| autoReadCleared | back to summary |
|---|---|
| protected void autoReadCleared() Overrides io. Doc from io. Is called once
| |
| getInterface | back to summary |
|---|---|
| public InetAddress getInterface() Overrides io. Implements io. Doc from io. Gets the address of the network interface used for multicast packets.
| |
| getNetworkInterface | back to summary |
|---|---|
| public NetworkInterface getNetworkInterface() Overrides io. 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
| |
| getOption0 | back to summary |
|---|---|
| private Object getOption0(Object option) | |
| getOptions | back to summary |
|---|---|
| public Map Overrides io. Implements io. Doc from io. Return all set
| |
| getTimeToLive | back to summary |
|---|---|
| public int getTimeToLive() Overrides io. Implements io. Doc from io. Gets the
| |
| isLoopbackModeDisabled | back to summary |
|---|---|
| public boolean isLoopbackModeDisabled() Overrides io. Implements io. Doc from io. Gets the
| |
| setAutoRead | back to summary |
|---|---|
| public DatagramChannelConfig setAutoRead(boolean autoRead) Overrides io. Implements io. Doc from io. Sets if
| |
| setInterface | back to summary |
|---|---|
| public DatagramChannelConfig setInterface(InetAddress interfaceAddress) Overrides io. 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) Overrides io. Implements io. Doc from io. Sets the
| |
| setNetworkInterface | back to summary |
|---|---|
| public DatagramChannelConfig setNetworkInterface(NetworkInterface networkInterface) Overrides io. 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;
}
| |
| setOption0 | back to summary |
|---|---|
| private void setOption0(Object option, Object value) | |
| setTimeToLive | back to summary |
|---|---|
| public DatagramChannelConfig setTimeToLive(int ttl) Overrides io. Implements io. Doc from io. Sets the
| |