public class ClientAtomicReferenceProxy<E> extends ClientProxy implements IAtomicReference<E>
name| Constructor and Description |
|---|
ClientAtomicReferenceProxy(String serviceName,
String objectId) |
| Modifier and Type | Method and Description |
|---|---|
void |
alter(IFunction<E,E> function) |
E |
alterAndGet(IFunction<E,E> function) |
<R> R |
apply(IFunction<E,R> function) |
void |
clear() |
boolean |
compareAndSet(E expect,
E update) |
boolean |
contains(E expected) |
E |
get() |
E |
getAndAlter(IFunction<E,E> function) |
E |
getAndSet(E newValue) |
protected ClientMessage |
invokeOnPartition(ClientMessage req) |
protected <T> T |
invokeOnPartitionInterruptibly(ClientMessage clientMessage) |
boolean |
isNull() |
protected void |
onInitialize()
Called when proxy is created.
|
void |
set(E newValue) |
E |
setAndGet(E update) |
String |
toString() |
deregisterListener, destroy, equals, getClient, getContext, getId, getName, getPartitionKey, getServiceName, hashCode, invoke, invoke, invokeOnPartition, invokeOnPartitionInterruptibly, onDestroy, onShutdown, registerListener, setContext, throwExceptionIfNull, toData, toObjectclone, finalize, getClass, notify, notifyAll, wait, wait, waitdestroy, getName, getPartitionKey, getServiceNamepublic <R> R apply(IFunction<E,R> function)
apply in interface IAtomicReference<E>public void alter(IFunction<E,E> function)
alter in interface IAtomicReference<E>public E alterAndGet(IFunction<E,E> function)
alterAndGet in interface IAtomicReference<E>public E getAndAlter(IFunction<E,E> function)
getAndAlter in interface IAtomicReference<E>public boolean compareAndSet(E expect, E update)
compareAndSet in interface IAtomicReference<E>public boolean contains(E expected)
contains in interface IAtomicReference<E>public E get()
get in interface IAtomicReference<E>public void set(E newValue)
set in interface IAtomicReference<E>public void clear()
clear in interface IAtomicReference<E>public E getAndSet(E newValue)
getAndSet in interface IAtomicReference<E>public E setAndGet(E update)
setAndGet in interface IAtomicReference<E>public boolean isNull()
isNull in interface IAtomicReference<E>protected void onInitialize()
ClientProxyonInitialize in class ClientProxyprotected ClientMessage invokeOnPartition(ClientMessage req)
protected <T> T invokeOnPartitionInterruptibly(ClientMessage clientMessage) throws InterruptedException
InterruptedExceptionCopyright © 2016 Hazelcast, Inc.. All Rights Reserved.