Giriş
Şu satırı dahil ederiz
import com.hazelcast.config.ReplicatedMapConfig;Örnek
Şöyle yaparız
ReplicatedMapConfig replicatedMapConfig = config.getReplicatedMapConfig("rogueUsers"); replicatedMapConfig.setInMemoryFormat(InMemoryFormat.BINARY); replicatedMapConfig.setAsyncFillup(true); replicatedMapConfig.setStatisticsEnabled(true); replicatedMapConfig.setSplitBrainProtectionName("splitbrainprotection-name");Daha sonra şöyle yaparız
HazelcastInstance hz = ...; ReplicatedMap<String, String> map = hz.getReplicatedMap("rogueUsers");
Hiç yorum yok:
Yorum Gönder