public class NetServerOptions extends TCPSSLOptions
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_ACCEPT_BACKLOG |
static boolean |
DEFAULT_CLIENT_AUTH_REQUIRED |
static String |
DEFAULT_HOST |
static int |
DEFAULT_PORT |
DEFAULT_IDLE_TIMEOUT, DEFAULT_SO_LINGER, DEFAULT_SSL, DEFAULT_TCP_KEEP_ALIVE, DEFAULT_TCP_NO_DELAY, DEFAULT_USE_POOLED_BUFFERS
DEFAULT_RECEIVE_BUFFER_SIZE, DEFAULT_REUSE_ADDRESS, DEFAULT_SEND_BUFFER_SIZE, DEFAULT_TRAFFIC_CLASS
Constructor and Description |
---|
NetServerOptions() |
NetServerOptions(JsonObject json) |
NetServerOptions(NetServerOptions other) |
addCrlPath, addCrlValue, getCrlPaths, getCrlValues, getEnabledCipherSuites, getIdleTimeout, getKeyStoreOptions, getSoLinger, getTrustStoreOptions, isSsl, isTcpKeepAlive, isTcpNoDelay, isUsePooledBuffers
getReceiveBufferSize, getSendBufferSize, getTrafficClass, isReuseAddress
public static final int DEFAULT_PORT
public static final String DEFAULT_HOST
public static final int DEFAULT_ACCEPT_BACKLOG
public static final boolean DEFAULT_CLIENT_AUTH_REQUIRED
public NetServerOptions(NetServerOptions other)
public NetServerOptions(JsonObject json)
public NetServerOptions()
public NetServerOptions setSendBufferSize(int sendBufferSize)
setSendBufferSize
in class NetworkOptions
public NetServerOptions setReceiveBufferSize(int receiveBufferSize)
setReceiveBufferSize
in class NetworkOptions
public NetServerOptions setReuseAddress(boolean reuseAddress)
setReuseAddress
in class NetworkOptions
public NetServerOptions setTrafficClass(int trafficClass)
setTrafficClass
in class NetworkOptions
public NetServerOptions setTcpNoDelay(boolean tcpNoDelay)
setTcpNoDelay
in class TCPSSLOptions
public NetServerOptions setTcpKeepAlive(boolean tcpKeepAlive)
setTcpKeepAlive
in class TCPSSLOptions
public NetServerOptions setSoLinger(int soLinger)
setSoLinger
in class TCPSSLOptions
public NetServerOptions setUsePooledBuffers(boolean usePooledBuffers)
setUsePooledBuffers
in class TCPSSLOptions
public NetServerOptions setIdleTimeout(int idleTimeout)
setIdleTimeout
in class TCPSSLOptions
public NetServerOptions setSsl(boolean ssl)
setSsl
in class TCPSSLOptions
public NetServerOptions setKeyStoreOptions(KeyStoreOptions keyStore)
setKeyStoreOptions
in class TCPSSLOptions
public NetServerOptions setTrustStoreOptions(TrustStoreOptions trustStore)
setTrustStoreOptions
in class TCPSSLOptions
public NetServerOptions addEnabledCipherSuite(String suite)
addEnabledCipherSuite
in class TCPSSLOptions
public int getAcceptBacklog()
public NetServerOptions setAcceptBacklog(int acceptBacklog)
public int getPort()
public NetServerOptions setPort(int port)
public String getHost()
public NetServerOptions setHost(String host)
public boolean isClientAuthRequired()
public NetServerOptions setClientAuthRequired(boolean clientAuthRequired)
public boolean equals(Object o)
equals
in class TCPSSLOptions
public int hashCode()
hashCode
in class TCPSSLOptions
Copyright © 2014. All Rights Reserved.