org.http4s.blaze.channel.nio1

Type members

Classlikes

final class FixedSelectorPool(poolSize: Int, bufferSize: Int, threadFactory: ThreadFactory) extends SelectorLoopPool

Provides a fixed size pool of SelectorLoops, distributing work in a round robin fashion

Provides a fixed size pool of SelectorLoops, distributing work in a round robin fashion

Facade over NIO1 SelectableChannels

Facade over NIO1 SelectableChannels

The interface adds a way to cleanup resources other than the channel itself.

Companion
object
object NIO1Channel
Companion
class
final class SelectorLoop(selector: Selector, bufferSize: Int, threadFactory: ThreadFactory) extends Executor with ExecutionContext

A special thread that listens for events on the provided selector.

A special thread that listens for events on the provided selector.

Value Params
bufferSize

Size of the scratch buffer instantiated for this thread.

selector

Selector to listen on.

threadFactory

Factory to make the Thread instance to run the loop.

Note

when the SelectorLoop is closed all registered Selectables are closed with it.

Provides SelectorLoops for NIO1 network services

Provides SelectorLoops for NIO1 network services