T
- the type of the value which is valid for the ChannelOption
public class ChannelOption<T> extends UniqueName
ChannelOption
allows to configure a ChannelConfig
in a type-safe
way. Which ChannelOption
is supported depends on the actual implementation
of ChannelConfig
and may depend on the nature of the transport it belongs
to.Modifier | Constructor and Description |
---|---|
protected |
ChannelOption(String name)
Deprecated.
Use
valueOf(String) instead. |
Modifier and Type | Method and Description |
---|---|
static boolean |
exists(String name)
|
static <T> ChannelOption<T> |
newInstance(String name)
Creates a new
ChannelOption for the given or fail with an
IllegalArgumentException if a ChannelOption for the given exists. |
void |
validate(T value)
Validate the value which is set for the
ChannelOption . |
static <T> ChannelOption<T> |
valueOf(String name)
Creates a new
ChannelOption with the specified or return the already existing
ChannelOption for the given name. |
compareTo, equals, hashCode, id, name, toString, validateArgs
public static final ChannelOption<ByteBufAllocator> ALLOCATOR
public static final ChannelOption<RecvByteBufAllocator> RCVBUF_ALLOCATOR
public static final ChannelOption<MessageSizeEstimator> MESSAGE_SIZE_ESTIMATOR
public static final ChannelOption<Integer> CONNECT_TIMEOUT_MILLIS
public static final ChannelOption<Integer> MAX_MESSAGES_PER_READ
public static final ChannelOption<Integer> WRITE_SPIN_COUNT
public static final ChannelOption<Integer> WRITE_BUFFER_HIGH_WATER_MARK
public static final ChannelOption<Integer> WRITE_BUFFER_LOW_WATER_MARK
public static final ChannelOption<Boolean> ALLOW_HALF_CLOSURE
public static final ChannelOption<Boolean> AUTO_READ
@Deprecated public static final ChannelOption<Boolean> AUTO_CLOSE
public static final ChannelOption<Boolean> SO_BROADCAST
public static final ChannelOption<Boolean> SO_KEEPALIVE
public static final ChannelOption<Integer> SO_SNDBUF
public static final ChannelOption<Integer> SO_RCVBUF
public static final ChannelOption<Boolean> SO_REUSEADDR
public static final ChannelOption<Integer> SO_LINGER
public static final ChannelOption<Integer> SO_BACKLOG
public static final ChannelOption<Integer> SO_TIMEOUT
public static final ChannelOption<Integer> IP_TOS
public static final ChannelOption<InetAddress> IP_MULTICAST_ADDR
public static final ChannelOption<NetworkInterface> IP_MULTICAST_IF
public static final ChannelOption<Integer> IP_MULTICAST_TTL
public static final ChannelOption<Boolean> IP_MULTICAST_LOOP_DISABLED
public static final ChannelOption<Boolean> TCP_NODELAY
@Deprecated public static final ChannelOption<Long> AIO_READ_TIMEOUT
@Deprecated public static final ChannelOption<Long> AIO_WRITE_TIMEOUT
@Deprecated public static final ChannelOption<Boolean> DATAGRAM_CHANNEL_ACTIVE_ON_REGISTRATION
@Deprecated protected ChannelOption(String name)
valueOf(String)
instead.public static <T> ChannelOption<T> valueOf(String name)
ChannelOption
with the specified or return the already existing
ChannelOption
for the given name.public static boolean exists(String name)
public static <T> ChannelOption<T> newInstance(String name)
ChannelOption
for the given or fail with an
IllegalArgumentException
if a ChannelOption
for the given exists.public void validate(T value)
ChannelOption
. Sub-classes
may override this for special checks.Copyright © 2008-2016 The Netty Project. All Rights Reserved.