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
Fields inherited from class UnixChannelOption
DOMAIN_SOCKET_READ_MODE, SO_REUSEPORTFields inherited from class 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, RECVBUF_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 TypeMethodDescriptionintlength()The length of the optval.voidvalidate(ByteBuffer value) Validate the value which is set for theChannelOption.Methods inherited from class GenericUnixChannelOption
level, optnameMethods inherited from class ChannelOption
exists, newInstance, valueOf, valueOf
-
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:ChannelOptionValidate the value which is set for theChannelOption. Sub-classes may override this for special checks.- Overrides:
validatein classChannelOption<ByteBuffer>
-