com.hazelcast.client.proxy
Class ClientAtomicLongProxy

java.lang.Object
  extended by com.hazelcast.client.spi.ClientProxy
      extended by com.hazelcast.client.proxy.ClientAtomicLongProxy
All Implemented Interfaces:
DistributedObject, IAtomicLong

public class ClientAtomicLongProxy
extends ClientProxy
implements IAtomicLong


Constructor Summary
ClientAtomicLongProxy(String serviceName, String objectId)
           
 
Method Summary
 long addAndGet(long delta)
           
 void alter(IFunction<Long,Long> function)
           
 long alterAndGet(IFunction<Long,Long> function)
           
<R> R
apply(IFunction<Long,R> function)
           
 boolean compareAndSet(long expect, long update)
           
 long decrementAndGet()
           
 long get()
           
 long getAndAdd(long delta)
           
 long getAndAlter(IFunction<Long,Long> function)
           
 long getAndIncrement()
           
 long getAndSet(long newValue)
           
 long incrementAndGet()
           
protected
<T> T
invoke(ClientRequest req)
           
 void set(long newValue)
           
 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.IAtomicLong
getName
 
Methods inherited from interface com.hazelcast.core.DistributedObject
destroy, getId, getPartitionKey, getServiceName
 

Constructor Detail

ClientAtomicLongProxy

public ClientAtomicLongProxy(String serviceName,
                             String objectId)
Method Detail

apply

public <R> R apply(IFunction<Long,R> function)
Specified by:
apply in interface IAtomicLong

alter

public void alter(IFunction<Long,Long> function)
Specified by:
alter in interface IAtomicLong

alterAndGet

public long alterAndGet(IFunction<Long,Long> function)
Specified by:
alterAndGet in interface IAtomicLong

getAndAlter

public long getAndAlter(IFunction<Long,Long> function)
Specified by:
getAndAlter in interface IAtomicLong

addAndGet

public long addAndGet(long delta)
Specified by:
addAndGet in interface IAtomicLong

compareAndSet

public boolean compareAndSet(long expect,
                             long update)
Specified by:
compareAndSet in interface IAtomicLong

decrementAndGet

public long decrementAndGet()
Specified by:
decrementAndGet in interface IAtomicLong

get

public long get()
Specified by:
get in interface IAtomicLong

getAndAdd

public long getAndAdd(long delta)
Specified by:
getAndAdd in interface IAtomicLong

getAndSet

public long getAndSet(long newValue)
Specified by:
getAndSet in interface IAtomicLong

incrementAndGet

public long incrementAndGet()
Specified by:
incrementAndGet in interface IAtomicLong

getAndIncrement

public long getAndIncrement()
Specified by:
getAndIncrement in interface IAtomicLong

set

public void set(long newValue)
Specified by:
set in interface IAtomicLong

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.