Giriş
Şu satırı dahil ederiz
import com.hazelcast.cp.IAtomicReference;
Örnek
Şöyle yaparız
HazelcastInstance hazelcastInstance = Hazelcast.newHazelcastInstance(); CPSubsystem cpSubsystem = hazelcastInstance.getCPSubsystem(); IAtomicReference<String> atomicref = cpSubsystem.getAtomicReference("atomicref"); atomicref.set("value");
Hiç yorum yok:
Yorum Gönder