WriteBufferWaterMark

cc.otavia.core.channel.internal.WriteBufferWaterMark
See theWriteBufferWaterMark companion object
final class WriteBufferWaterMark(val low: Int, val high: Int, validate: Boolean)

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 high water mark, Channel#writableBytes() will start to return 0.

If the number of bytes queued in the write buffer exceeds the high high water mark and then dropped down below the low low water mark, Channel#writableBytes() will start to return a positive value again.

Value parameters

high

the high water mark for the write buffer.

low

the low water mark for the write buffer.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any

Concrete fields

val high: Int
val low: Int