public class NettyEventServerFactory extends EventLoopGroupFactory implements EventServerFactory
| Modifier and Type | Field and Description |
|---|---|
private String |
address |
private org.apache.nifi.security.util.ClientAuth |
clientAuth |
private Supplier<List<io.netty.channel.ChannelHandler>> |
handlerSupplier |
private int |
port |
private TransportProtocol |
protocol |
private Integer |
socketReceiveBuffer |
private SSLContext |
sslContext |
| Constructor and Description |
|---|
NettyEventServerFactory(String address,
int port,
TransportProtocol protocol) |
| Modifier and Type | Method and Description |
|---|---|
private io.netty.bootstrap.AbstractBootstrap<?,?> |
getBootstrap() |
private EventServer |
getBoundEventServer(io.netty.bootstrap.AbstractBootstrap<?,?> bootstrap,
io.netty.channel.EventLoopGroup group) |
EventServer |
getEventServer()
Get Event Server with Channel bound to configured address and port number
|
private void |
setBufferSize(io.netty.bootstrap.AbstractBootstrap<?,?> bootstrap) |
void |
setClientAuth(org.apache.nifi.security.util.ClientAuth clientAuth)
Set Client Authentication
|
void |
setHandlerSupplier(Supplier<List<io.netty.channel.ChannelHandler>> handlerSupplier)
Set Channel Handler Supplier
|
void |
setSocketReceiveBuffer(Integer socketReceiveBuffer)
Set Socket Receive Buffer Size for TCP Sockets
|
void |
setSslContext(SSLContext sslContext)
Set SSL Context to enable TLS Channel Handler
|
getEventLoopGroup, setThreadNamePrefix, setWorkerThreadsprivate final String address
private final int port
private final TransportProtocol protocol
private Integer socketReceiveBuffer
private SSLContext sslContext
private org.apache.nifi.security.util.ClientAuth clientAuth
public NettyEventServerFactory(String address, int port, TransportProtocol protocol)
public void setHandlerSupplier(Supplier<List<io.netty.channel.ChannelHandler>> handlerSupplier)
handlerSupplier - Channel Handler Supplierpublic void setSocketReceiveBuffer(Integer socketReceiveBuffer)
socketReceiveBuffer - Receive Buffer size can be null to use default settingpublic void setSslContext(SSLContext sslContext)
sslContext - SSL Contextpublic void setClientAuth(org.apache.nifi.security.util.ClientAuth clientAuth)
clientAuth - Client Authenticationpublic EventServer getEventServer()
getEventServer in interface EventServerFactoryprivate void setBufferSize(io.netty.bootstrap.AbstractBootstrap<?,?> bootstrap)
private io.netty.bootstrap.AbstractBootstrap<?,?> getBootstrap()
private EventServer getBoundEventServer(io.netty.bootstrap.AbstractBootstrap<?,?> bootstrap, io.netty.channel.EventLoopGroup group)
Copyright © 2021 Apache NiFi Project. All rights reserved.