T - the type of object referred to by this referencepublic class RaftAtomicRefProxy<T> extends ClientProxy implements IAtomicReference<T>
IAtomicReferencename| Constructor and Description |
|---|
RaftAtomicRefProxy(ClientContext context,
RaftGroupId groupId,
String proxyName,
String objectName) |
deregisterListener, destroy, destroyLocally, destroyRemotely, equals, getClient, getConnectedServerVersion, getContext, getDistributedObjectName, getId, getName, getSerializationService, getServiceName, hashCode, invoke, invoke, invokeOnAddress, invokeOnPartition, invokeOnPartitionInterruptibly, onInitialize, onShutdown, postDestroy, preDestroy, registerListener, setContext, toData, toObjectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitdestroy, getName, getServiceNamepublic RaftAtomicRefProxy(ClientContext context, RaftGroupId groupId, String proxyName, String objectName)
public boolean compareAndSet(T expect, T update)
compareAndSet in interface IAtomicReference<T>public T get()
get in interface IAtomicReference<T>public void set(T newValue)
set in interface IAtomicReference<T>public T getAndSet(T newValue)
getAndSet in interface IAtomicReference<T>public T setAndGet(T update)
setAndGet in interface IAtomicReference<T>public boolean isNull()
isNull in interface IAtomicReference<T>public void clear()
clear in interface IAtomicReference<T>public boolean contains(T value)
contains in interface IAtomicReference<T>public void alter(IFunction<T,T> function)
alter in interface IAtomicReference<T>public T alterAndGet(IFunction<T,T> function)
alterAndGet in interface IAtomicReference<T>public T getAndAlter(IFunction<T,T> function)
getAndAlter in interface IAtomicReference<T>public <R> R apply(IFunction<T,R> function)
apply in interface IAtomicReference<T>public InternalCompletableFuture<Boolean> compareAndSetAsync(T expect, T update)
compareAndSetAsync in interface IAtomicReference<T>public InternalCompletableFuture<T> getAsync()
getAsync in interface IAtomicReference<T>public InternalCompletableFuture<Void> setAsync(T newValue)
setAsync in interface IAtomicReference<T>public InternalCompletableFuture<T> getAndSetAsync(T newValue)
getAndSetAsync in interface IAtomicReference<T>public InternalCompletableFuture<Boolean> isNullAsync()
isNullAsync in interface IAtomicReference<T>public InternalCompletableFuture<Void> clearAsync()
clearAsync in interface IAtomicReference<T>public InternalCompletableFuture<Boolean> containsAsync(T expected)
containsAsync in interface IAtomicReference<T>public InternalCompletableFuture<Void> alterAsync(IFunction<T,T> function)
alterAsync in interface IAtomicReference<T>public InternalCompletableFuture<T> alterAndGetAsync(IFunction<T,T> function)
alterAndGetAsync in interface IAtomicReference<T>public InternalCompletableFuture<T> getAndAlterAsync(IFunction<T,T> function)
getAndAlterAsync in interface IAtomicReference<T>public <R> InternalCompletableFuture<R> applyAsync(IFunction<T,R> function)
applyAsync in interface IAtomicReference<T>public void onDestroy()
ClientProxyonDestroy in class ClientProxypublic String getPartitionKey()
getPartitionKey in interface DistributedObjectgetPartitionKey in class ClientProxypublic CPGroupId getGroupId()
Copyright © 2022 Hazelcast, Inc.. All Rights Reserved.