Package com.hazelcast.config
Class EndpointConfig
java.lang.Object
com.hazelcast.config.EndpointConfig
- All Implemented Interfaces:
NamedConfig
- Direct Known Subclasses:
ServerSocketEndpointConfig
public class EndpointConfig extends Object implements NamedConfig
Endpoint configuration that defines communication/networking properties common to both incoming/outgoing connections
eg.
- Encryption / Security
- Hazelcast protocol type
- Since:
- 3.12
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_SOCKET_CONNECT_TIMEOUT_SECONDS
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 ProtocolType
protocolType
protected SocketInterceptorConfig
socketInterceptorConfig
protected SSLConfig
sslConfig
protected SymmetricEncryptionConfig
symmetricEncryptionConfig
-
Constructor Summary
Constructors Constructor Description EndpointConfig()
-
Method Summary
-
Field Details
-
DEFAULT_SOCKET_CONNECT_TIMEOUT_SECONDS
public static final int DEFAULT_SOCKET_CONNECT_TIMEOUT_SECONDS- See Also:
- Constant Field Values
-
DEFAULT_SOCKET_SEND_BUFFER_SIZE_KB
public static final int DEFAULT_SOCKET_SEND_BUFFER_SIZE_KB- See Also:
- Constant Field Values
-
DEFAULT_SOCKET_RECEIVE_BUFFER_SIZE_KB
public static final int DEFAULT_SOCKET_RECEIVE_BUFFER_SIZE_KB- See Also:
- Constant Field Values
-
DEFAULT_SOCKET_LINGER_SECONDS
public static final int DEFAULT_SOCKET_LINGER_SECONDS- See Also:
- Constant Field Values
-
name
-
protocolType
-
interfaces
-
socketInterceptorConfig
-
sslConfig
-
symmetricEncryptionConfig
-
-
Constructor Details
-
EndpointConfig
public EndpointConfig()
-
-
Method Details
-
getProtocolType
-
getName
- Specified by:
getName
in interfaceNamedConfig
-
setName
- Specified by:
setName
in interfaceNamedConfig
-
getSymmetricEncryptionConfig
Gets theSymmetricEncryptionConfig
. The value can benull
which means that no symmetric encryption should be used.- Returns:
- the SymmetricEncryptionConfig
-
setSymmetricEncryptionConfig
public EndpointConfig setSymmetricEncryptionConfig(SymmetricEncryptionConfig symmetricEncryptionConfig)Sets theSymmetricEncryptionConfig
. The value can benull
if no symmetric encryption should be used.- Parameters:
symmetricEncryptionConfig
- the SymmetricEncryptionConfig to set- Returns:
- the updated NetworkConfig
- See Also:
getSymmetricEncryptionConfig()
-
getQualifier
-
getOutboundPortDefinitions
-
setOutboundPortDefinitions
-
addOutboundPortDefinition
-
getOutboundPorts
-
setOutboundPorts
-
addOutboundPort
-
getInterfaces
- Returns:
- the interfaces
-
setInterfaces
- Parameters:
interfaces
- the interfaces to set
-
isSocketBufferDirect
public boolean isSocketBufferDirect() -
setSocketBufferDirect
-
isSocketTcpNoDelay
public boolean isSocketTcpNoDelay() -
isSocketKeepAlive
public boolean isSocketKeepAlive() -
setSocketKeepAlive
-
setSocketTcpNoDelay
-
getSocketSendBufferSizeKb
public int getSocketSendBufferSizeKb() -
setSocketSendBufferSizeKb
-
getSocketRcvBufferSizeKb
public int getSocketRcvBufferSizeKb() -
setSocketRcvBufferSizeKb
-
getSocketLingerSeconds
public int getSocketLingerSeconds() -
setSocketLingerSeconds
-
getSocketConnectTimeoutSeconds
public int getSocketConnectTimeoutSeconds() -
setSocketConnectTimeoutSeconds
-
getSocketInterceptorConfig
Gets theSocketInterceptorConfig
. The value can benull
if no socket interception is needed.- Returns:
- the SocketInterceptorConfig
- See Also:
setSocketInterceptorConfig(SocketInterceptorConfig)
-
setSocketInterceptorConfig
Sets theSocketInterceptorConfig
. The value can benull
if no socket interception is needed.- Parameters:
socketInterceptorConfig
- the SocketInterceptorConfig to set- Returns:
- the updated NetworkConfig
-
getSSLConfig
Returns the currentSSLConfig
. It is possible that null is returned if no SSLConfig has been set.- Returns:
- the SSLConfig
- See Also:
setSSLConfig(SSLConfig)
-
setSSLConfig
Sets theSSLConfig
. null value indicates that no SSLConfig should be used.- Parameters:
sslConfig
- the SSLConfig- Returns:
- the updated NetworkConfig
- See Also:
getSSLConfig()
-
setProtocolType
-