public class NettyStreamFactoryFactory extends Object implements StreamFactoryFactory
StreamFactoryFactory
implementation for Netty-based streams.Constructor and Description |
---|
NettyStreamFactoryFactory()
Construct an instance with the default
EventLoopGroup and ByteBufAllocator . |
NettyStreamFactoryFactory(io.netty.channel.EventLoopGroup eventLoopGroup,
io.netty.buffer.ByteBufAllocator allocator)
Construct an instance with the given
EventLoopGroup and ByteBufAllocator . |
Modifier and Type | Method and Description |
---|---|
StreamFactory |
create(SocketSettings socketSettings,
SslSettings sslSettings)
Create a
StreamFactory with the given settings. |
public NettyStreamFactoryFactory(io.netty.channel.EventLoopGroup eventLoopGroup, io.netty.buffer.ByteBufAllocator allocator)
EventLoopGroup
and ByteBufAllocator
.eventLoopGroup
- the non-null event loop groupallocator
- the non-null byte buf allocatorpublic NettyStreamFactoryFactory()
EventLoopGroup
and ByteBufAllocator
.public StreamFactory create(SocketSettings socketSettings, SslSettings sslSettings)
StreamFactoryFactory
StreamFactory
with the given settings.create
in interface StreamFactoryFactory
socketSettings
- the socket settingssslSettings
- the SSL settings