com.hazelcast.client.proxy
Class ClientAtomicReferenceProxy<E>

java.lang.Object
  extended by com.hazelcast.client.spi.ClientProxy
      extended by com.hazelcast.client.proxy.ClientAtomicReferenceProxy<E>
All Implemented Interfaces:
DistributedObject, IAtomicReference<E>

public class ClientAtomicReferenceProxy<E>
extends ClientProxy
implements IAtomicReference<E>


Constructor Summary
ClientAtomicReferenceProxy(String serviceName, String objectId)
           
 
Method Summary
 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
<T> T
invoke(ClientRequest req)
           
 boolean isNull()
           
 void set(E newValue)
           
 E setAndGet(E update)
           
 String toString()
           
 
Methods inherited from class com.hazelcast.client.spi.ClientProxy
destroy, equals, getContext, getId, getName, getPartitionKey, getServiceName, hashCode, invoke, invoke, invokeInterruptibly, listen, listen, onDestroy, onInitialize, onShutdown, setContext, stopListening, throwExceptionIfNull, toData, toObject
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.hazelcast.core.DistributedObject
destroy, getId, getName, getPartitionKey, getServiceName
 

Constructor Detail

ClientAtomicReferenceProxy

public ClientAtomicReferenceProxy(String serviceName,
                                  String objectId)
Method Detail

apply

public <R> R apply(IFunction<E,R> function)
Specified by:
apply in interface IAtomicReference<E>

alter

public void alter(IFunction<E,E> function)
Specified by:
alter in interface IAtomicReference<E>

alterAndGet

public E alterAndGet(IFunction<E,E> function)
Specified by:
alterAndGet in interface IAtomicReference<E>

getAndAlter

public E getAndAlter(IFunction<E,E> function)
Specified by:
getAndAlter in interface IAtomicReference<E>

compareAndSet

public boolean compareAndSet(E expect,
                             E update)
Specified by:
compareAndSet in interface IAtomicReference<E>

contains

public boolean contains(E expected)
Specified by:
contains in interface IAtomicReference<E>

get

public E get()
Specified by:
get in interface IAtomicReference<E>

set

public void set(E newValue)
Specified by:
set in interface IAtomicReference<E>

clear

public void clear()
Specified by:
clear in interface IAtomicReference<E>

getAndSet

public E getAndSet(E newValue)
Specified by:
getAndSet in interface IAtomicReference<E>

setAndGet

public E setAndGet(E update)
Specified by:
setAndGet in interface IAtomicReference<E>

isNull

public boolean isNull()
Specified by:
isNull in interface IAtomicReference<E>

invoke

protected <T> T invoke(ClientRequest req)
Overrides:
invoke in class ClientProxy

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.