Top Description Fields Constructors Methods
io.netty5.channel.unix

public final Class RawUnixChannelOption

extends GenericUnixChannelOption<ByteBuffer>
Class Inheritance
Imports
io.netty5.util.internal.ObjectUtil, java.nio.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 {@param level} and {@param optname}.

Field Summary

Modifier and TypeField and Description
private final int

Constructor Summary

AccessConstructor and Description
public
RawUnixChannelOption(String
the name that is used.
name
,
int
the level.
level
,
int
the optname.
optname
,
int
the expected length of the optvalue.
length
)

Creates a new instance.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the length.
length
()

The length of the optval.

public void
validate(ByteBuffer value)

Overrides io.netty5.channel.ChannelOption.validate.

Validate the value which is set for the ChannelOption.
Inherited from io.netty5.channel.unix.GenericUnixChannelOption:
leveloptname

Field Detail

lengthback to summary
private final int length

Constructor Detail

RawUnixChannelOptionback to summary
public RawUnixChannelOption(String name, int level, int optname, int length)

Creates a new instance.

Parameters
name:String

the name that is used.

level:int

the level.

optname:int

the optname.

length:int

the expected length of the optvalue.

Method Detail

lengthback to summary
public int length()

The length of the optval.

Returns:int

the length.

validateback to summary
public void validate(ByteBuffer value)

Overrides io.netty5.channel.ChannelOption.validate.

Doc from io.netty5.channel.ChannelOption.validate.

Validate the value which is set for the ChannelOption. Sub-classes may override this for special checks.

Annotations
@Override