public final class WriteBufferWaterMark
extends java.lang.Object
If the number of bytes queued in the write buffer exceeds the
high water mark, Channel.isWritable()
will start to return false
.
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.isWritable()
will start to return
true
again.
Note that messages needs to be handled by the MessageSizeEstimator
used by the channel for Channel.isWritable()
to provide accurate back-pressure.
限定符和类型 | 字段和说明 |
---|---|
static WriteBufferWaterMark |
DEFAULT |
构造器和说明 |
---|
WriteBufferWaterMark(int low,
int high)
Create a new instance.
|
限定符和类型 | 方法和说明 |
---|---|
int |
high()
Returns the high water mark for the write buffer.
|
int |
low()
Returns the low water mark for the write buffer.
|
java.lang.String |
toString() |
public static final WriteBufferWaterMark DEFAULT