public final class RawUnixChannelOption extends GenericUnixChannelOption<java.nio.ByteBuffer>
GenericUnixChannelOption
which uses an ByteBuffer
as optval
. The user is responsible
to fill the ByteBuffer
in a correct manner, so it works with the and .DOMAIN_SOCKET_READ_MODE, SO_REUSEPORT
ALLOCATOR, ALLOW_HALF_CLOSURE, AUTO_CLOSE, AUTO_READ, CONNECT_TIMEOUT_MILLIS, DATAGRAM_CHANNEL_ACTIVE_ON_REGISTRATION, IP_MULTICAST_ADDR, IP_MULTICAST_IF, IP_MULTICAST_LOOP_DISABLED, IP_MULTICAST_TTL, IP_TOS, MAX_MESSAGES_PER_READ, MAX_MESSAGES_PER_WRITE, MESSAGE_SIZE_ESTIMATOR, RCVBUF_ALLOCATOR, SINGLE_EVENTEXECUTOR_PER_GROUP, SO_BACKLOG, SO_BROADCAST, SO_KEEPALIVE, SO_LINGER, SO_RCVBUF, SO_REUSEADDR, SO_SNDBUF, SO_TIMEOUT, TCP_FASTOPEN, TCP_FASTOPEN_CONNECT, TCP_NODELAY, WRITE_BUFFER_HIGH_WATER_MARK, WRITE_BUFFER_LOW_WATER_MARK, WRITE_BUFFER_WATER_MARK, WRITE_SPIN_COUNT
构造器和说明 |
---|
RawUnixChannelOption(java.lang.String name,
int level,
int optname,
int length)
Creates a new instance.
|
限定符和类型 | 方法和说明 |
---|---|
int |
length()
The length of the optval.
|
void |
validate(java.nio.ByteBuffer value)
Validate the value which is set for the
ChannelOption . |
level, optname
exists, newInstance, valueOf, valueOf
public RawUnixChannelOption(java.lang.String name, int level, int optname, int length)
name
- the name that is used.level
- the level.length
- the expected length of the optvalue.optname
- the optname.public int length()
public void validate(java.nio.ByteBuffer value)
ChannelOption
ChannelOption
. Sub-classes
may override this for special checks.validate
在类中 ChannelOption<java.nio.ByteBuffer>