public final class WriteBufferWaterMark extends 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.
Modifier and Type | Field and Description |
---|---|
static WriteBufferWaterMark |
DEFAULT |
Constructor and Description |
---|
WriteBufferWaterMark(int low,
int high)
Create a new instance.
|
Modifier and Type | Method and 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() |
public static final WriteBufferWaterMark DEFAULT
Copyright © 2008–2024 The Netty Project. All rights reserved.