public class NettyStreamFactoryFactory extends java.lang.Object implements StreamFactoryFactory
StreamFactoryFactory
implementation for Netty-based streams.Modifier and Type | Class and Description |
---|---|
static class |
NettyStreamFactoryFactory.Builder
A builder for an instance of
NettyStreamFactoryFactory . |
Modifier and Type | Field and Description |
---|---|
private io.netty.buffer.ByteBufAllocator |
allocator |
private io.netty.channel.EventLoopGroup |
eventLoopGroup |
private java.lang.Class<? extends io.netty.channel.socket.SocketChannel> |
socketChannelClass |
Modifier | Constructor and Description |
---|---|
|
NettyStreamFactoryFactory()
Deprecated.
Use
builder() instead to construct the NettyStreamFactoryFactory . |
|
NettyStreamFactoryFactory(io.netty.channel.EventLoopGroup eventLoopGroup,
io.netty.buffer.ByteBufAllocator allocator)
Deprecated.
Use
builder() instead to construct the NettyStreamFactoryFactory . |
private |
NettyStreamFactoryFactory(NettyStreamFactoryFactory.Builder builder) |
Modifier and Type | Method and Description |
---|---|
static NettyStreamFactoryFactory.Builder |
builder()
Gets a builder for an instance of
NettyStreamFactoryFactory . |
StreamFactory |
create(SocketSettings socketSettings,
SslSettings sslSettings)
Create a
StreamFactory with the given settings. |
java.lang.String |
toString() |
private final io.netty.channel.EventLoopGroup eventLoopGroup
private final java.lang.Class<? extends io.netty.channel.socket.SocketChannel> socketChannelClass
private final io.netty.buffer.ByteBufAllocator allocator
@Deprecated public NettyStreamFactoryFactory()
builder()
instead to construct the NettyStreamFactoryFactory
.EventLoopGroup
and ByteBufAllocator
.@Deprecated public NettyStreamFactoryFactory(io.netty.channel.EventLoopGroup eventLoopGroup, io.netty.buffer.ByteBufAllocator allocator)
builder()
instead to construct the NettyStreamFactoryFactory
.EventLoopGroup
and ByteBufAllocator
.eventLoopGroup
- the non-null event loop groupallocator
- the non-null byte buf allocatorprivate NettyStreamFactoryFactory(NettyStreamFactoryFactory.Builder builder)
public static NettyStreamFactoryFactory.Builder builder()
NettyStreamFactoryFactory
.public StreamFactory create(SocketSettings socketSettings, SslSettings sslSettings)
StreamFactoryFactory
StreamFactory
with the given settings.create
in interface StreamFactoryFactory
socketSettings
- the socket settingssslSettings
- the SSL settingspublic java.lang.String toString()
toString
in class java.lang.Object