public class EndpointConfig extends Object implements NamedConfig
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_SOCKET_CONNECT_TIMEOUT_SECONDS
|
static int |
DEFAULT_SOCKET_KEEP_COUNT
See
jdk.net.ExtendedSocketOptions#TCP_KEEPINTERVAL |
static int |
DEFAULT_SOCKET_KEEP_IDLE_SECONDS
See
jdk.net.ExtendedSocketOptions#TCP_KEEPIDLE |
static int |
DEFAULT_SOCKET_KEEP_INTERVAL_SECONDS
See
jdk.net.ExtendedSocketOptions#TCP_KEEPINTERVAL |
static int |
DEFAULT_SOCKET_LINGER_SECONDS
|
static int |
DEFAULT_SOCKET_RECEIVE_BUFFER_SIZE_KB
|
static int |
DEFAULT_SOCKET_SEND_BUFFER_SIZE_KB
|
protected InterfacesConfig |
interfaces |
protected String |
name |
protected com.hazelcast.instance.ProtocolType |
protocolType |
protected SocketInterceptorConfig |
socketInterceptorConfig |
protected SSLConfig |
sslConfig |
protected SymmetricEncryptionConfig |
symmetricEncryptionConfig |
Constructor and Description |
---|
EndpointConfig() |
Modifier and Type | Method and Description |
---|---|
EndpointConfig |
addOutboundPort(int port) |
EndpointConfig |
addOutboundPortDefinition(String portDef) |
boolean |
equals(Object o) |
InterfacesConfig |
getInterfaces() |
String |
getName() |
Collection<String> |
getOutboundPortDefinitions() |
Collection<Integer> |
getOutboundPorts() |
com.hazelcast.instance.ProtocolType |
getProtocolType() |
com.hazelcast.instance.EndpointQualifier |
getQualifier() |
int |
getSocketConnectTimeoutSeconds() |
SocketInterceptorConfig |
getSocketInterceptorConfig()
Gets the
SocketInterceptorConfig . |
int |
getSocketKeepCount()
Keep-Alive count: the maximum number of TCP keep-alive probes to send before giving up and closing the connection if no
response is obtained from the other side.
|
int |
getSocketKeepIdleSeconds()
Keep-Alive idle time: the number of seconds of idle time before keep-alive initiates a probe.
|
int |
getSocketKeepIntervalSeconds()
Keep-Alive interval: the number of seconds between keep-alive probes.
|
int |
getSocketLingerSeconds() |
int |
getSocketRcvBufferSizeKb() |
int |
getSocketSendBufferSizeKb() |
SSLConfig |
getSSLConfig()
Returns the current
SSLConfig . |
SymmetricEncryptionConfig |
getSymmetricEncryptionConfig()
Deprecated.
since 4.2
|
TpcSocketConfig |
getTpcSocketConfig()
Gets the TpcSocketConfig.
|
int |
hashCode() |
boolean |
isSocketBufferDirect() |
boolean |
isSocketKeepAlive() |
boolean |
isSocketTcpNoDelay() |
EndpointConfig |
setInterfaces(InterfacesConfig interfaces) |
EndpointConfig |
setName(String name) |
EndpointConfig |
setOutboundPortDefinitions(Collection<String> outboundPortDefs) |
EndpointConfig |
setOutboundPorts(Collection<Integer> outboundPorts) |
EndpointConfig |
setProtocolType(com.hazelcast.instance.ProtocolType protocolType) |
EndpointConfig |
setSocketBufferDirect(boolean socketBufferDirect) |
EndpointConfig |
setSocketConnectTimeoutSeconds(int socketConnectTimeoutSeconds) |
EndpointConfig |
setSocketInterceptorConfig(SocketInterceptorConfig socketInterceptorConfig)
Sets the
SocketInterceptorConfig . |
EndpointConfig |
setSocketKeepAlive(boolean socketKeepAlive) |
EndpointConfig |
setSocketKeepCount(int socketKeepCount)
Set the maximum number of TCP keep-alive probes to send before giving up and closing the connection if no
response is obtained from the other side.
|
EndpointConfig |
setSocketKeepIdleSeconds(int socketKeepIdleSeconds)
Set the number of seconds a connection needs to be idle before TCP begins sending out keep-alive probes.
|
EndpointConfig |
setSocketKeepIntervalSeconds(int socketKeepIntervalSeconds)
Set the number of seconds between keep-alive probes.
|
EndpointConfig |
setSocketLingerSeconds(int socketLingerSeconds) |
EndpointConfig |
setSocketRcvBufferSizeKb(int socketRcvBufferSizeKb) |
EndpointConfig |
setSocketSendBufferSizeKb(int socketSendBufferSizeKb) |
EndpointConfig |
setSocketTcpNoDelay(boolean socketTcpNoDelay) |
EndpointConfig |
setSSLConfig(SSLConfig sslConfig)
Sets the
SSLConfig . |
EndpointConfig |
setSymmetricEncryptionConfig(SymmetricEncryptionConfig symmetricEncryptionConfig)
Deprecated.
since 4.2
|
EndpointConfig |
setTpcSocketConfig(TpcSocketConfig tpcSocketConfig)
Sets the TpcSocketConfig.
|
public static final int DEFAULT_SOCKET_CONNECT_TIMEOUT_SECONDS
public static final int DEFAULT_SOCKET_SEND_BUFFER_SIZE_KB
public static final int DEFAULT_SOCKET_RECEIVE_BUFFER_SIZE_KB
public static final int DEFAULT_SOCKET_LINGER_SECONDS
public static final int DEFAULT_SOCKET_KEEP_IDLE_SECONDS
jdk.net.ExtendedSocketOptions#TCP_KEEPIDLE
public static final int DEFAULT_SOCKET_KEEP_INTERVAL_SECONDS
jdk.net.ExtendedSocketOptions#TCP_KEEPINTERVAL
public static final int DEFAULT_SOCKET_KEEP_COUNT
jdk.net.ExtendedSocketOptions#TCP_KEEPINTERVAL
protected String name
protected com.hazelcast.instance.ProtocolType protocolType
protected InterfacesConfig interfaces
protected SocketInterceptorConfig socketInterceptorConfig
protected SSLConfig sslConfig
protected SymmetricEncryptionConfig symmetricEncryptionConfig
public com.hazelcast.instance.ProtocolType getProtocolType()
public String getName()
getName
in interface NamedConfig
public EndpointConfig setName(String name)
setName
in interface NamedConfig
@Deprecated public SymmetricEncryptionConfig getSymmetricEncryptionConfig()
SymmetricEncryptionConfig
. The value can be null
which means that no symmetric encryption should
be used.@Deprecated public EndpointConfig setSymmetricEncryptionConfig(SymmetricEncryptionConfig symmetricEncryptionConfig)
SymmetricEncryptionConfig
. The value can be null
if no symmetric encryption should be used.symmetricEncryptionConfig
- the SymmetricEncryptionConfig to setgetSymmetricEncryptionConfig()
public com.hazelcast.instance.EndpointQualifier getQualifier()
public Collection<String> getOutboundPortDefinitions()
public EndpointConfig setOutboundPortDefinitions(Collection<String> outboundPortDefs)
public EndpointConfig addOutboundPortDefinition(String portDef)
public Collection<Integer> getOutboundPorts()
public EndpointConfig setOutboundPorts(Collection<Integer> outboundPorts)
public EndpointConfig addOutboundPort(int port)
public InterfacesConfig getInterfaces()
public EndpointConfig setInterfaces(InterfacesConfig interfaces)
interfaces
- the interfaces to setpublic boolean isSocketBufferDirect()
public EndpointConfig setSocketBufferDirect(boolean socketBufferDirect)
public boolean isSocketTcpNoDelay()
public boolean isSocketKeepAlive()
public EndpointConfig setSocketKeepAlive(boolean socketKeepAlive)
public EndpointConfig setSocketTcpNoDelay(boolean socketTcpNoDelay)
public int getSocketSendBufferSizeKb()
public EndpointConfig setSocketSendBufferSizeKb(int socketSendBufferSizeKb)
public int getSocketRcvBufferSizeKb()
public EndpointConfig setSocketRcvBufferSizeKb(int socketRcvBufferSizeKb)
public int getSocketLingerSeconds()
public EndpointConfig setSocketLingerSeconds(int socketLingerSeconds)
public int getSocketConnectTimeoutSeconds()
public EndpointConfig setSocketConnectTimeoutSeconds(int socketConnectTimeoutSeconds)
public SocketInterceptorConfig getSocketInterceptorConfig()
SocketInterceptorConfig
. The value can be null
if no socket interception is needed.setSocketInterceptorConfig(SocketInterceptorConfig)
public EndpointConfig setSocketInterceptorConfig(SocketInterceptorConfig socketInterceptorConfig)
SocketInterceptorConfig
. The value can be null
if no socket interception is needed.socketInterceptorConfig
- the SocketInterceptorConfig to setpublic SSLConfig getSSLConfig()
SSLConfig
. It is possible that null is returned if no SSLConfig has been set.setSSLConfig(SSLConfig)
public EndpointConfig setSSLConfig(SSLConfig sslConfig)
SSLConfig
. null value indicates that no SSLConfig should be used.sslConfig
- the SSLConfiggetSSLConfig()
@Beta @Nonnull public TpcSocketConfig getTpcSocketConfig()
TpcConfig
@Beta @Nonnull public EndpointConfig setTpcSocketConfig(@Nonnull TpcSocketConfig tpcSocketConfig)
tpcSocketConfig
- Tpc socket config to setNullPointerException
- if tpcSocketConfig is nullTpcConfig
@PrivateApi public EndpointConfig setProtocolType(com.hazelcast.instance.ProtocolType protocolType)
public int getSocketKeepIdleSeconds()
keep alive is true
.
Requires a recent JDK 8, JDK 11 or greater version that includes the required
JDK support.public EndpointConfig setSocketKeepIdleSeconds(int socketKeepIdleSeconds)
keep alive is true
.
Requires a recent JDK 8, JDK 11 or greater version that includes the required
JDK support.public int getSocketKeepIntervalSeconds()
keep alive is true
.
Requires a recent JDK 8, JDK 11 or greater version that includes the required
JDK support.public EndpointConfig setSocketKeepIntervalSeconds(int socketKeepIntervalSeconds)
keep-alive idle time
has passed.
Valid values are 1 to 32767.
This option is only applicable when keep alive is true
.
Requires a recent JDK 8, JDK 11 or greater version that includes the required
JDK support.public int getSocketKeepCount()
keep alive is true
.
Requires a recent JDK 8, JDK 11 or greater version that includes the required
JDK support.public EndpointConfig setSocketKeepCount(int socketKeepCount)
keep alive is true
.
Requires a recent JDK 8, JDK 11 or greater version that includes the required
JDK support.Copyright © 2023 Hazelcast, Inc.. All rights reserved.