Instance Methodswift-nio 2.81.0NIOCore
handlerRemoved(context:)
ChannelHandlers.swift:106func handlerRemoved(context: ChannelHandlerContext)
func handlerRemoved(context: ChannelHandlerContext)
s7NIOCore20AcceptBackoffHandlerC14handlerRemoved7contextyAA07ChannelD7ContextC_tF
What are these?9P75J
import NIOCore
The core abstractions that make up SwiftNIO.
final class AcceptBackoffHandler
A ChannelHandler
that implements a backoff for a ServerChannel
when accept produces an IOError
. These errors are often recoverable by reducing the rate at which we call accept.
final class ChannelHandlerContext
Every ChannelHandler
has – when added to a ChannelPipeline
– a corresponding ChannelHandlerContext
which is the way ChannelHandler
s can interact with other ChannelHandler
s in the pipeline.
init(backoffProvider: @escaping (IOError) -> TimeAmount? = AcceptBackoffHandler.defaultBackoffProvider)
Create a new instance
init(shouldForwardIOErrorCaught: Bool, backoffProvider: @escaping (IOError) -> TimeAmount? = AcceptBackoffHandler.defaultBackoffProvider)
Create a new instance
static func defaultBackoffProvider(error: IOError) -> TimeAmount?
Default implementation used as backoffProvider
which delays accept by 1 second.
func channelInactive(context: ChannelHandlerContext)
func errorCaught(context: ChannelHandlerContext, error: Error)
func read(context: ChannelHandlerContext)
typealias InboundIn = Channel
typealias OutboundIn = Channel