BootstrapFactory

class BootstrapFactory(alloc: ByteBufAllocator)

A bootstrap factory responsible for generating the Netty bootstrap

Constructors

Link copied to clipboard
constructor(alloc: ByteBufAllocator)

Functions

Link copied to clipboard
fun createChildLoopGroup(): EventLoopGroup

Creates a child loop group with a number of threads based on availableProcessors * 2, which is done at Netty level.

Link copied to clipboard
fun createParentLoopGroup(): EventLoopGroup

Creates a parent loop group with a single thread behind it, based on the best available event loop group.

Link copied to clipboard
fun createServerBootstrap(parentGroup: EventLoopGroup, childGroup: EventLoopGroup): ServerBootstrap

Creates a server bootstrap using the parent and child event loop groups with a configuration that closely resembles the values found in the client.