public class NettyServerBootstrapConfiguration extends Object implements Cloneable
Modifier and Type | Field and Description |
---|---|
protected int |
backlog |
protected int |
bossCount |
protected io.netty.channel.EventLoopGroup |
bossGroup |
protected boolean |
broadcast |
protected int |
connectTimeout |
protected String |
enabledProtocols |
protected String |
host |
protected boolean |
keepAlive |
protected File |
keyStoreFile |
protected String |
keyStoreFormat |
protected String |
keyStoreResource |
protected boolean |
needClientAuth |
protected NettyServerBootstrapFactory |
nettyServerBootstrapFactory |
protected String |
networkInterface |
protected Map<String,Object> |
options |
protected String |
passphrase |
protected int |
port |
protected String |
protocol |
protected int |
receiveBufferSize |
protected int |
receiveBufferSizePredictor |
protected boolean |
reuseAddress |
protected String |
securityProvider |
protected int |
sendBufferSize |
protected ServerInitializerFactory |
serverPipelineFactory |
protected boolean |
ssl |
protected boolean |
sslClientCertHeaders |
protected org.apache.camel.util.jsse.SSLContextParameters |
sslContextParameters |
protected io.netty.handler.ssl.SslHandler |
sslHandler |
protected boolean |
tcpNoDelay |
protected File |
trustStoreFile |
protected String |
trustStoreResource |
protected int |
workerCount |
protected io.netty.channel.EventLoopGroup |
workerGroup |
Constructor and Description |
---|
NettyServerBootstrapConfiguration() |
Modifier and Type | Method and Description |
---|---|
boolean |
compatible(NettyServerBootstrapConfiguration other)
Checks if the other
NettyServerBootstrapConfiguration is compatible
with this, as a Netty listener bound on port X shares the same common
NettyServerBootstrapConfiguration , which must be identical. |
String |
getAddress() |
int |
getBacklog() |
int |
getBossCount() |
io.netty.channel.EventLoopGroup |
getBossGroup() |
int |
getConnectTimeout() |
String |
getEnabledProtocols() |
String |
getHost() |
File |
getKeyStoreFile()
Deprecated.
|
String |
getKeyStoreFormat() |
String |
getKeyStoreResource() |
NettyServerBootstrapFactory |
getNettyServerBootstrapFactory() |
String |
getNetworkInterface() |
Map<String,Object> |
getOptions() |
String |
getPassphrase() |
int |
getPort() |
String |
getProtocol() |
int |
getReceiveBufferSize() |
int |
getReceiveBufferSizePredictor() |
String |
getSecurityProvider() |
int |
getSendBufferSize() |
ServerInitializerFactory |
getServerPipelineFactory() |
org.apache.camel.util.jsse.SSLContextParameters |
getSslContextParameters() |
io.netty.handler.ssl.SslHandler |
getSslHandler() |
File |
getTrustStoreFile()
Deprecated.
|
String |
getTrustStoreResource() |
int |
getWorkerCount() |
io.netty.channel.EventLoopGroup |
getWorkerGroup() |
boolean |
isBroadcast() |
boolean |
isKeepAlive() |
boolean |
isNeedClientAuth() |
boolean |
isReuseAddress() |
boolean |
isSsl() |
boolean |
isSslClientCertHeaders() |
boolean |
isTcp() |
boolean |
isTcpNoDelay() |
void |
setBacklog(int backlog) |
void |
setBossCount(int bossCount) |
void |
setBossGroup(io.netty.channel.EventLoopGroup bossGroup)
Set the BossGroup which could be used for handling the new connection of the server side across the NettyEndpoint
|
void |
setBroadcast(boolean broadcast) |
void |
setConnectTimeout(int connectTimeout) |
void |
setEnabledProtocols(String enabledProtocols) |
void |
setHost(String host) |
void |
setKeepAlive(boolean keepAlive) |
void |
setKeyStoreFile(File keyStoreFile)
Deprecated.
|
void |
setKeyStoreFormat(String keyStoreFormat) |
void |
setKeyStoreResource(String keyStoreResource) |
void |
setNeedClientAuth(boolean needClientAuth) |
void |
setNettyServerBootstrapFactory(NettyServerBootstrapFactory nettyServerBootstrapFactory) |
void |
setNetworkInterface(String networkInterface) |
void |
setOptions(Map<String,Object> options) |
void |
setPassphrase(String passphrase) |
void |
setPort(int port) |
void |
setProtocol(String protocol) |
void |
setReceiveBufferSize(int receiveBufferSize) |
void |
setReceiveBufferSizePredictor(int receiveBufferSizePredictor) |
void |
setReuseAddress(boolean reuseAddress) |
void |
setSecurityProvider(String securityProvider) |
void |
setSendBufferSize(int sendBufferSize) |
void |
setServerPipelineFactory(ServerInitializerFactory serverPipelineFactory) |
void |
setSsl(boolean ssl) |
void |
setSslClientCertHeaders(boolean sslClientCertHeaders) |
void |
setSslContextParameters(org.apache.camel.util.jsse.SSLContextParameters sslContextParameters) |
void |
setSslHandler(io.netty.handler.ssl.SslHandler sslHandler) |
void |
setTcpNoDelay(boolean tcpNoDelay) |
void |
setTrustStoreFile(File trustStoreFile)
Deprecated.
|
void |
setTrustStoreResource(String trustStoreResource) |
void |
setWorkerCount(int workerCount) |
void |
setWorkerGroup(io.netty.channel.EventLoopGroup workerGroup)
Set the WorkerGroup which could be used for handling selector eventloop across the NettyEndpoint
|
String |
toStringBootstrapConfiguration() |
protected String protocol
protected String host
protected int port
protected boolean broadcast
protected int sendBufferSize
protected int receiveBufferSize
protected int receiveBufferSizePredictor
protected int bossCount
protected int workerCount
protected boolean keepAlive
protected boolean tcpNoDelay
protected boolean reuseAddress
protected int connectTimeout
protected int backlog
protected ServerInitializerFactory serverPipelineFactory
protected NettyServerBootstrapFactory nettyServerBootstrapFactory
protected boolean ssl
protected boolean sslClientCertHeaders
protected io.netty.handler.ssl.SslHandler sslHandler
protected org.apache.camel.util.jsse.SSLContextParameters sslContextParameters
protected boolean needClientAuth
protected File keyStoreFile
protected File trustStoreFile
protected String keyStoreResource
protected String trustStoreResource
protected String keyStoreFormat
protected String securityProvider
protected String enabledProtocols
protected String passphrase
protected io.netty.channel.EventLoopGroup bossGroup
protected io.netty.channel.EventLoopGroup workerGroup
protected String networkInterface
public String getAddress()
public boolean isTcp()
public String getProtocol()
public void setProtocol(String protocol)
public String getHost()
public void setHost(String host)
public int getPort()
public void setPort(int port)
public boolean isBroadcast()
public void setBroadcast(boolean broadcast)
public int getSendBufferSize()
public void setSendBufferSize(int sendBufferSize)
public int getReceiveBufferSize()
public void setReceiveBufferSize(int receiveBufferSize)
public int getReceiveBufferSizePredictor()
public void setReceiveBufferSizePredictor(int receiveBufferSizePredictor)
public int getWorkerCount()
public void setWorkerCount(int workerCount)
public int getBossCount()
public void setBossCount(int bossCount)
public boolean isKeepAlive()
public void setKeepAlive(boolean keepAlive)
public boolean isTcpNoDelay()
public void setTcpNoDelay(boolean tcpNoDelay)
public boolean isReuseAddress()
public void setReuseAddress(boolean reuseAddress)
public int getConnectTimeout()
public void setConnectTimeout(int connectTimeout)
public int getBacklog()
public void setBacklog(int backlog)
public boolean isSsl()
public void setSsl(boolean ssl)
public boolean isSslClientCertHeaders()
public void setSslClientCertHeaders(boolean sslClientCertHeaders)
public io.netty.handler.ssl.SslHandler getSslHandler()
public void setSslHandler(io.netty.handler.ssl.SslHandler sslHandler)
public org.apache.camel.util.jsse.SSLContextParameters getSslContextParameters()
public void setSslContextParameters(org.apache.camel.util.jsse.SSLContextParameters sslContextParameters)
public boolean isNeedClientAuth()
public void setNeedClientAuth(boolean needClientAuth)
@Deprecated public File getKeyStoreFile()
@Deprecated public void setKeyStoreFile(File keyStoreFile)
@Deprecated public File getTrustStoreFile()
@Deprecated public void setTrustStoreFile(File trustStoreFile)
public String getKeyStoreResource()
public void setKeyStoreResource(String keyStoreResource)
public String getTrustStoreResource()
public void setTrustStoreResource(String trustStoreResource)
public String getKeyStoreFormat()
public void setKeyStoreFormat(String keyStoreFormat)
public String getSecurityProvider()
public void setSecurityProvider(String securityProvider)
public String getPassphrase()
public void setPassphrase(String passphrase)
public ServerInitializerFactory getServerPipelineFactory()
public void setServerPipelineFactory(ServerInitializerFactory serverPipelineFactory)
public NettyServerBootstrapFactory getNettyServerBootstrapFactory()
public void setNettyServerBootstrapFactory(NettyServerBootstrapFactory nettyServerBootstrapFactory)
public io.netty.channel.EventLoopGroup getBossGroup()
public void setBossGroup(io.netty.channel.EventLoopGroup bossGroup)
bossGroup
- public io.netty.channel.EventLoopGroup getWorkerGroup()
public void setWorkerGroup(io.netty.channel.EventLoopGroup workerGroup)
workerGroup
- public String getNetworkInterface()
public void setNetworkInterface(String networkInterface)
public String getEnabledProtocols()
public void setEnabledProtocols(String enabledProtocols)
public boolean compatible(NettyServerBootstrapConfiguration other)
NettyServerBootstrapConfiguration
is compatible
with this, as a Netty listener bound on port X shares the same common
NettyServerBootstrapConfiguration
, which must be identical.public String toStringBootstrapConfiguration()
Apache Camel