Initializerswift-nio 2.72.0NIOCore
init
ChannelOption.swift:263init()
init()
s7NIOCore14ChannelOptionsV5TypesO26WriteBufferWaterMarkOptionVAGycfc
What are these?
FNV24: [4664W]
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
typealias Value = WriteBufferWaterMark