public final class RawUnixChannelOption extends GenericUnixChannelOption<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
Constructor and Description |
---|
RawUnixChannelOption(String name,
int level,
int optname,
int length)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
int |
length()
The length of the optval.
|
void |
validate(ByteBuffer value)
Validate the value which is set for the
ChannelOption . |
level, optname
exists, newInstance, valueOf, valueOf
public RawUnixChannelOption(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(ByteBuffer value)
ChannelOption
ChannelOption
. Sub-classes
may override this for special checks.validate
in class ChannelOption<ByteBuffer>
Copyright © 2008–2024 The Netty Project. All rights reserved.