WriteBufferWaterMark

public struct WriteBufferWaterMark

The watermark used to detect when Channel.isWritable returns true or false.

  • low

    The low mark setting for a Channel.

    When the amount of buffered bytes in the Channels outbound buffer drops below this value the Channel will be marked as writable again (after it was non-writable).

    Declaration

    Swift

    public let low: Int
  • The high mark setting for a Channel.

    When the amount of buffered bytes in the Channels outbound exceeds this value the Channel will be marked as non-writable. It will be marked as writable again once the amount of buffered bytes drops below low.

    Declaration

    Swift

    public let high: Int
  • Create a new instance.

    Valid initialization is restricted to 1 <= low <= high.

    Declaration

    Swift

    public init(low: Int, high: Int)

    Parameters

    low

    The low watermark.

    high

    The high watermark.