@UriParams 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 |
static String |
DEFAULT_ENABLED_PROTOCOLS |
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 |
serverInitializerFactory |
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 |
getServerInitializerFactory() |
ServerInitializerFactory |
getServerPipelineFactory()
Deprecated.
use #getServerInitializerFactory
|
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) |
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 |
setServerInitializerFactory(ServerInitializerFactory serverInitializerFactory) |
void |
setServerPipelineFactory(ServerInitializerFactory serverPipelineFactory)
Deprecated.
use #setServerInitializerFactory
|
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) |
String |
toStringBootstrapConfiguration() |
public static final String DEFAULT_ENABLED_PROTOCOLS
@UriPath @Metadata(required="true") protected String protocol
@UriPath @Metadata(required="true") protected String host
@UriPath @Metadata(required="true") protected int port
@UriParam protected boolean broadcast
@UriParam(defaultValue="65536") protected int sendBufferSize
@UriParam(defaultValue="65536") protected int receiveBufferSize
@UriParam protected int receiveBufferSizePredictor
@UriParam(defaultValue="1") protected int bossCount
@UriParam protected int workerCount
@UriParam(defaultValue="true") protected boolean keepAlive
@UriParam(defaultValue="true") protected boolean tcpNoDelay
@UriParam(defaultValue="true") protected boolean reuseAddress
@UriParam(defaultValue="10000") protected int connectTimeout
@UriParam protected int backlog
@UriParam protected ServerInitializerFactory serverInitializerFactory
@UriParam protected NettyServerBootstrapFactory nettyServerBootstrapFactory
@UriParam protected boolean ssl
@UriParam protected boolean sslClientCertHeaders
@UriParam protected io.netty.handler.ssl.SslHandler sslHandler
@UriParam protected org.apache.camel.util.jsse.SSLContextParameters sslContextParameters
@UriParam protected boolean needClientAuth
@UriParam protected File keyStoreFile
@UriParam protected File trustStoreFile
@UriParam protected String keyStoreResource
@UriParam protected String trustStoreResource
@UriParam protected String keyStoreFormat
@UriParam protected String securityProvider
@UriParam(defaultValue="TLSv1,TLSv1.1,TLSv1.2") protected String enabledProtocols
@UriParam protected String passphrase
protected io.netty.channel.EventLoopGroup bossGroup
protected io.netty.channel.EventLoopGroup workerGroup
@UriParam 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)
@Deprecated public ServerInitializerFactory getServerPipelineFactory()
@Deprecated public void setServerPipelineFactory(ServerInitializerFactory serverPipelineFactory)
public ServerInitializerFactory getServerInitializerFactory()
public void setServerInitializerFactory(ServerInitializerFactory serverInitializerFactory)
public NettyServerBootstrapFactory getNettyServerBootstrapFactory()
public void setNettyServerBootstrapFactory(NettyServerBootstrapFactory nettyServerBootstrapFactory)
public io.netty.channel.EventLoopGroup getBossGroup()
public void setBossGroup(io.netty.channel.EventLoopGroup bossGroup)
public io.netty.channel.EventLoopGroup getWorkerGroup()
public void setWorkerGroup(io.netty.channel.EventLoopGroup 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