Package io.netty.channel.unix
Class RawUnixChannelOption
java.lang.Object
io.netty.util.AbstractConstant<ChannelOption<ByteBuffer>>
io.netty.channel.ChannelOption<ByteBuffer>
io.netty.channel.unix.UnixChannelOption<ByteBuffer>
io.netty.channel.unix.GenericUnixChannelOption<ByteBuffer>
io.netty.channel.unix.RawUnixChannelOption
- All Implemented Interfaces:
Constant<ChannelOption<ByteBuffer>>
,Comparable<ChannelOption<ByteBuffer>>
A
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 .-
Field Summary
FieldsFields inherited from class io.netty.channel.unix.UnixChannelOption
DOMAIN_SOCKET_READ_MODE, SO_REUSEPORT
Fields inherited from class io.netty.channel.ChannelOption
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 Summary
ConstructorsConstructorDescriptionRawUnixChannelOption
(String name, int level, int optname, int length) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionint
length()
The length of the optval.void
validate
(ByteBuffer value) Validate the value which is set for theChannelOption
.Methods inherited from class io.netty.channel.unix.GenericUnixChannelOption
level, optname
Methods inherited from class io.netty.channel.ChannelOption
exists, newInstance, valueOf, valueOf
-
Field Details
-
length
private final int length
-
-
Constructor Details
-
RawUnixChannelOption
Creates a new instance.- Parameters:
name
- the name that is used.level
- the level.optname
- the optname.length
- the expected length of the optvalue.
-
-
Method Details
-
length
public int length()The length of the optval.- Returns:
- the length.
-
validate
Description copied from class:ChannelOption
Validate the value which is set for theChannelOption
. Sub-classes may override this for special checks.- Overrides:
validate
in classChannelOption<ByteBuffer>
-