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 return 0.
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.
| Modifier and Type | Field and Description |
|---|---|
| public static final WriteBufferWaterMark | |
| private static final int | |
| private static final int | |
| private final int | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public | WriteBufferWaterMark(int
low water mark for write buffer. low, int high water mark for write buffer high)Create a new instance. |
| pack-priv | WriteBufferWaterMark(int low, int high, boolean validate)
This constructor is needed to keep backward-compatibility. |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public int | |
| public String |
| DEFAULT | back to summary |
|---|---|
| public static final WriteBufferWaterMark DEFAULT | |
| DEFAULT_HIGH_WATER_MARK | back to summary |
|---|---|
| private static final int DEFAULT_HIGH_WATER_MARK | |
| DEFAULT_LOW_WATER_MARK | back to summary |
|---|---|
| private static final int DEFAULT_LOW_WATER_MARK | |
| high | back to summary |
|---|---|
| private final int high | |
| low | back to summary |
|---|---|
| private final int low | |
| WriteBufferWaterMark | back to summary |
|---|---|
| public WriteBufferWaterMark(int low, int high) Create a new instance.
| |
| WriteBufferWaterMark | back to summary |
|---|---|
| pack-priv WriteBufferWaterMark(int low, int high, boolean validate) This constructor is needed to keep backward-compatibility. | |
| high | back to summary |
|---|---|
| public int high() Returns the high water mark for the write buffer. | |
| low | back to summary |
|---|---|
| public int low() Returns the low water mark for the write buffer. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |