Giriş
Şu satırı dahil ederiz
import com.hazelcast.config.NetworkConfig;
Örnek
Açıklaması şöyle
With network configuration, you can set Hazelcast cluster member port numbers and enable/disable the auto-increment mechanism for new cluster members, etc. In this example configuration, we set the default port to 5900 and disable the port auto increment option. ( Hazelcast default port is 5701)
addOutboundPort metodu
Şöyle yaparız
Config config = new Config(); config.getNetworkConfig().addOutboundPort(0);
getIcmpFailureDetectorConfig metodu
IcmpFailureDetectorConfig nesnesi döner
setJoin metodu
JoinConfig nesnesi atar
setPort metodu
Şöyle yaparız
NetworkConfig networkConfig = new NetworkConfig().setPort(5900).setPortAutoIncrement(false);
RestApiConfig nesnesi atar
setSocketInterceptorConfig metodu
SocketInterceptorConfig nesnesi atar
Hiç yorum yok:
Yorum Gönder