E
- type of referenced objectpublic class ClientAtomicReferenceProxy<E> extends ClientProxy implements IAtomicReference<E>
IAtomicReference
.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> ClientDelegatingFuture<T> |
invokeOnPartitionAsync(ClientMessage clientMessage,
ClientMessageDecoder clientMessageDecoder) |
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, getDistributedObjectName, getId, getName, getPartitionKey, getSerializationService, getServiceName, hashCode, invoke, invoke, invokeOnPartition, invokeOnPartitionInterruptibly, onDestroy, onShutdown, postDestroy, preDestroy, registerListener, setContext, toData, toObject
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
destroy, getName, getPartitionKey, getServiceName
public <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()
ClientProxy
onInitialize
in class ClientProxy
protected ClientMessage invokeOnPartition(ClientMessage req)
protected <T> T invokeOnPartitionInterruptibly(ClientMessage clientMessage) throws InterruptedException
InterruptedException
protected <T> ClientDelegatingFuture<T> invokeOnPartitionAsync(ClientMessage clientMessage, ClientMessageDecoder clientMessageDecoder)
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.