Value
ChannelOption.swift:261typealias Value = WriteBufferWaterMark
typealias Value = WriteBufferWaterMark
s7NIOCore14ChannelOptionsV5TypesO26WriteBufferWaterMarkOptionV5Valuea
What are these?GRYG
import NIOCore
The core abstractions that make up SwiftNIO.
struct WriteBufferWaterMarkOption
WriteBufferWaterMarkOption
allows users to configure when a Channel
should be marked as writable or not. Once the amount of bytes queued in a Channel
s outbound buffer is larger than WriteBufferWaterMark.high
the channel will be marked as non-writable and so Channel.isWritable
will return false
. Once we were able to write some data out of the outbound buffer and the amount of bytes queued falls below WriteBufferWaterMark.low
the Channel
will become writable again. Once this happens Channel.writable
will return true
again. These writability changes are also propagated through the ChannelPipeline
and so can be intercepted via ChannelInboundHandler.channelWritabilityChanged
.
struct ChannelOptions
Provides ChannelOption
s to be used with a Channel
, Bootstrap
or ServerBootstrap
.
enum Types
struct WriteBufferWaterMark
The watermark used to detect when Channel.isWritable
returns true
or false
.
init()