public static final class NettyStreamFactoryFactory.Builder extends Object
NettyStreamFactoryFactory.| Modifier and Type | Method and Description |
|---|---|
NettyStreamFactoryFactory.Builder |
allocator(io.netty.buffer.ByteBufAllocator allocator)
Sets the allocator.
|
NettyStreamFactoryFactory |
build()
Build an instance of
NettyStreamFactoryFactory. |
NettyStreamFactoryFactory.Builder |
eventLoopGroup(io.netty.channel.EventLoopGroup eventLoopGroup)
Sets the event loop group.
|
NettyStreamFactoryFactory.Builder |
socketChannelClass(Class<? extends io.netty.channel.socket.SocketChannel> socketChannelClass)
Sets the socket channel class
|
public NettyStreamFactoryFactory.Builder allocator(io.netty.buffer.ByteBufAllocator allocator)
allocator - the allocator to use for ByteBuf instancespublic NettyStreamFactoryFactory.Builder socketChannelClass(Class<? extends io.netty.channel.socket.SocketChannel> socketChannelClass)
socketChannelClass - the socket channel classpublic NettyStreamFactoryFactory.Builder eventLoopGroup(io.netty.channel.EventLoopGroup eventLoopGroup)
eventLoopGroup - the event loop group that all channels created by this factory will be a part ofpublic NettyStreamFactoryFactory build()
NettyStreamFactoryFactory.