public class ProtonServerOptions extends NetServerOptions
ProtonServer
creation.DEFAULT_ACCEPT_BACKLOG, DEFAULT_CLIENT_AUTH, DEFAULT_HOST, DEFAULT_PORT, DEFAULT_PROXY_PROTOCOL_TIMEOUT, DEFAULT_PROXY_PROTOCOL_TIMEOUT_TIME_UNIT, DEFAULT_SNI, DEFAULT_USE_PROXY_PROTOCOL
DEFAULT_ENABLED_SECURE_TRANSPORT_PROTOCOLS, DEFAULT_IDLE_TIMEOUT, DEFAULT_IDLE_TIMEOUT_TIME_UNIT, DEFAULT_SO_LINGER, DEFAULT_SSL, DEFAULT_SSL_ENGINE, DEFAULT_SSL_HANDSHAKE_TIMEOUT, DEFAULT_SSL_HANDSHAKE_TIMEOUT_TIME_UNIT, DEFAULT_TCP_CORK, DEFAULT_TCP_FAST_OPEN, DEFAULT_TCP_KEEP_ALIVE, DEFAULT_TCP_NO_DELAY, DEFAULT_TCP_QUICKACK, DEFAULT_USE_ALPN
DEFAULT_LOG_ENABLED, DEFAULT_RECEIVE_BUFFER_SIZE, DEFAULT_REUSE_ADDRESS, DEFAULT_REUSE_PORT, DEFAULT_SEND_BUFFER_SIZE, DEFAULT_TRAFFIC_CLASS
Constructor and Description |
---|
ProtonServerOptions() |
ProtonServerOptions(JsonObject json)
Create options from JSON
|
ProtonServerOptions(ProtonServerOptions other)
Copy constructor
|
getAcceptBacklog, getClientAuth, getHost, getPort, getProxyProtocolTimeout, getProxyProtocolTimeoutUnit, isSni, isUseProxyProtocol, setProxyProtocolTimeout, setProxyProtocolTimeoutUnit, setUseProxyProtocol
getCrlPaths, getCrlValues, getEnabledCipherSuites, getEnabledSecureTransportProtocols, getIdleTimeout, getIdleTimeoutUnit, getJdkSslEngineOptions, getKeyCertOptions, getKeyStoreOptions, getOpenSslEngineOptions, getPemKeyCertOptions, getPemTrustOptions, getPfxKeyCertOptions, getPfxTrustOptions, getSoLinger, getSslEngineOptions, getSslHandshakeTimeout, getSslHandshakeTimeoutUnit, getTrustOptions, getTrustStoreOptions, isSsl, isTcpCork, isTcpFastOpen, isTcpKeepAlive, isTcpNoDelay, isTcpQuickAck, isUseAlpn
getLogActivity, getReceiveBufferSize, getSendBufferSize, getTrafficClass, isReuseAddress, isReusePort
public ProtonServerOptions()
public ProtonServerOptions(ProtonServerOptions other)
other
- the options to copypublic ProtonServerOptions(JsonObject json)
json
- the JSONpublic JsonObject toJson()
toJson
in class NetServerOptions
public ProtonServerOptions setSendBufferSize(int sendBufferSize)
setSendBufferSize
in class NetServerOptions
public ProtonServerOptions setReceiveBufferSize(int receiveBufferSize)
setReceiveBufferSize
in class NetServerOptions
public ProtonServerOptions setReuseAddress(boolean reuseAddress)
setReuseAddress
in class NetServerOptions
public ProtonServerOptions setTrafficClass(int trafficClass)
setTrafficClass
in class NetServerOptions
public ProtonServerOptions setTcpNoDelay(boolean tcpNoDelay)
setTcpNoDelay
in class NetServerOptions
public ProtonServerOptions setTcpKeepAlive(boolean tcpKeepAlive)
setTcpKeepAlive
in class NetServerOptions
public ProtonServerOptions setSoLinger(int soLinger)
setSoLinger
in class NetServerOptions
public ProtonServerOptions setIdleTimeout(int idleTimeout)
setIdleTimeout
in class NetServerOptions
public ProtonServerOptions setIdleTimeoutUnit(TimeUnit idleTimeoutUnit)
setIdleTimeoutUnit
in class NetServerOptions
public ProtonServerOptions setSsl(boolean ssl)
setSsl
in class NetServerOptions
public ProtonServerOptions setKeyStoreOptions(JksOptions options)
setKeyStoreOptions
in class NetServerOptions
public ProtonServerOptions setPfxKeyCertOptions(PfxOptions options)
setPfxKeyCertOptions
in class NetServerOptions
public ProtonServerOptions setPemKeyCertOptions(PemKeyCertOptions options)
setPemKeyCertOptions
in class NetServerOptions
public ProtonServerOptions setTrustStoreOptions(JksOptions options)
setTrustStoreOptions
in class NetServerOptions
public ProtonServerOptions setPfxTrustOptions(PfxOptions options)
setPfxTrustOptions
in class NetServerOptions
public ProtonServerOptions setPemTrustOptions(PemTrustOptions options)
setPemTrustOptions
in class NetServerOptions
public ProtonServerOptions addEnabledCipherSuite(String suite)
addEnabledCipherSuite
in class NetServerOptions
public ProtonServerOptions addCrlPath(String crlPath) throws NullPointerException
addCrlPath
in class NetServerOptions
NullPointerException
public ProtonServerOptions addCrlValue(Buffer crlValue) throws NullPointerException
addCrlValue
in class NetServerOptions
NullPointerException
public ProtonServerOptions setAcceptBacklog(int acceptBacklog)
setAcceptBacklog
in class NetServerOptions
public ProtonServerOptions setPort(int port)
setPort
in class NetServerOptions
public ProtonServerOptions setHost(String host)
setHost
in class NetServerOptions
public ProtonServerOptions setClientAuth(ClientAuth clientAuth)
setClientAuth
in class NetServerOptions
public ProtonServerOptions setUseAlpn(boolean useAlpn)
setUseAlpn
in class NetServerOptions
public ProtonServerOptions addEnabledSecureTransportProtocol(String protocol)
addEnabledSecureTransportProtocol
in class NetServerOptions
public ProtonServerOptions removeEnabledSecureTransportProtocol(String protocol)
removeEnabledSecureTransportProtocol
in class NetServerOptions
public ProtonServerOptions setEnabledSecureTransportProtocols(Set<String> enabledSecureTransportProtocols)
setEnabledSecureTransportProtocols
in class NetServerOptions
public ProtonServerOptions setJdkSslEngineOptions(JdkSSLEngineOptions sslEngineOptions)
setJdkSslEngineOptions
in class NetServerOptions
public ProtonServerOptions setKeyCertOptions(KeyCertOptions options)
setKeyCertOptions
in class NetServerOptions
public ProtonServerOptions setOpenSslEngineOptions(OpenSSLEngineOptions sslEngineOptions)
setOpenSslEngineOptions
in class NetServerOptions
public ProtonServerOptions setSslEngineOptions(SSLEngineOptions sslEngineOptions)
setSslEngineOptions
in class NetServerOptions
public ProtonServerOptions setSslHandshakeTimeout(long sslHandshakeTimeout)
setSslHandshakeTimeout
in class NetServerOptions
public ProtonServerOptions setSslHandshakeTimeoutUnit(TimeUnit sslHandshakeTimeoutUnit)
setSslHandshakeTimeoutUnit
in class NetServerOptions
public ProtonServerOptions setTrustOptions(TrustOptions options)
setTrustOptions
in class NetServerOptions
public ProtonServerOptions setLogActivity(boolean logEnabled)
setLogActivity
in class NetServerOptions
public ProtonServerOptions setSni(boolean sni)
setSni
in class NetServerOptions
public ProtonServerOptions setReusePort(boolean reusePort)
setReusePort
in class NetServerOptions
public ProtonServerOptions setTcpFastOpen(boolean tcpFastOpen)
setTcpFastOpen
in class NetServerOptions
public ProtonServerOptions setTcpCork(boolean tcpCork)
setTcpCork
in class NetServerOptions
public ProtonServerOptions setTcpQuickAck(boolean tcpQuickAck)
setTcpQuickAck
in class NetServerOptions
public ProtonServerOptions setHeartbeat(int heartbeat)
heartbeat
- heart beat maximum delaypublic int getHeartbeat()
public ProtonServerOptions setMaxFrameSize(int maxFrameSize)
If this property is not set explicitly, a reasonable default value is used.
Setting this property to a negative value will result in no maximum frame size being announced at all.
maxFrameSize
- The frame size in bytes.public int getMaxFrameSize()
If this property is not set explicitly, a reasonable default value is used.
Copyright © 2020 Eclipse. All rights reserved.