com.hazelcast.config
public class NetworkConfig extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_PORT
Default value of port number
|
Constructor and Description |
---|
NetworkConfig() |
public static final int DEFAULT_PORT
public int getPort()
setPort(int)
public NetworkConfig setPort(int port)
port
- the port the Hazelcast member will try to bind ongetPort()
,
for more information.
public int getPortCount()
setPortCount(int)
,
for more information.
public void setPortCount(int portCount)
portCount
- the maximum number of ports allowed to use.for more information.
public boolean isPortAutoIncrement()
setPortAutoIncrement(boolean)
public NetworkConfig setPortAutoIncrement(boolean portAutoIncrement)
setPort(int)
and if the port is not free, the member will not start and throw an exception.
If this value is set to true, Hazelcast will start at the port specified by setPort(int)
and will try
until it finds a free port, or until it runs out of ports to try setPortCount(int)
.portAutoIncrement
- the portAutoIncrement to setisPortAutoIncrement()
,
setPortCount(int)
,
setPort(int)
public boolean isReuseAddress()
public NetworkConfig setReuseAddress(boolean reuseAddress)
public Collection<String> getOutboundPortDefinitions()
public NetworkConfig setOutboundPortDefinitions(Collection<String> outboundPortDefs)
public NetworkConfig addOutboundPortDefinition(String portDef)
public Collection<Integer> getOutboundPorts()
public NetworkConfig setOutboundPorts(Collection<Integer> outboundPorts)
public NetworkConfig addOutboundPort(int port)
public InterfacesConfig getInterfaces()
public NetworkConfig setInterfaces(InterfacesConfig interfaces)
interfaces
- the interfaces to setpublic JoinConfig getJoin()
JoinConfig
.public NetworkConfig setJoin(JoinConfig join)
join
- the join to setpublic String getPublicAddress()
public NetworkConfig setPublicAddress(String publicAddress)
public SocketInterceptorConfig getSocketInterceptorConfig()
SocketInterceptorConfig
. The value can be null if no socket interception is needed.setSocketInterceptorConfig(SocketInterceptorConfig)
public NetworkConfig setSocketInterceptorConfig(SocketInterceptorConfig socketInterceptorConfig)
SocketInterceptorConfig
. The value can be null if no socket interception is needed.socketInterceptorConfig
- the SocketInterceptorConfig to setpublic SymmetricEncryptionConfig getSymmetricEncryptionConfig()
SymmetricEncryptionConfig
. The value can be null which means that no symmetric encryption should
be used.
public NetworkConfig setSymmetricEncryptionConfig(SymmetricEncryptionConfig symmetricEncryptionConfig)
SymmetricEncryptionConfig
. The value can be null if no symmetric encryption should be used.symmetricEncryptionConfig
- the SymmetricEncryptionConfig to setgetSymmetricEncryptionConfig()
public SSLConfig getSSLConfig()
SSLConfig
. It is possible that null is returned if no SSLConfig has been
set.setSSLConfig(SSLConfig)
public NetworkConfig setSSLConfig(SSLConfig sslConfig)
SSLConfig
. null value indicates that no SSLConfig should be used.sslConfig
- the SSLConfig.getSSLConfig()
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.