- java.lang.Object
-
- io.netty5.channel.WriteBufferWaterMark
-
public final class WriteBufferWaterMark extends Object
WriteBufferWaterMark
is used to set low water mark and high water mark for the write buffer.If the number of bytes queued in the write buffer exceeds the high water mark,
Channel.writableBytes()
will start to return0
.If the number of bytes queued in the write buffer exceeds the high water mark and then dropped down below the low water mark,
Channel.writableBytes()
will start to return a positive value again.
-
-
Field Summary
Fields Modifier and Type Field Description static WriteBufferWaterMark
DEFAULT
-
Constructor Summary
Constructors Constructor Description WriteBufferWaterMark(int low, int high)
Create a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
high()
Returns the high water mark for the write buffer.int
low()
Returns the low water mark for the write buffer.String
toString()
-
-
-
Field Detail
-
DEFAULT
public static final WriteBufferWaterMark DEFAULT
-
-