com.hazelcast.core
Interface AsyncAtomicLong

All Superinterfaces:
DistributedObject, IAtomicLong

@Beta
public interface AsyncAtomicLong
extends IAtomicLong

A IAtomicLong that exposes its operations using a ICompletableFuture so it can be used in the reactive programming model approach.

Since:
3.2

Method Summary
 ICompletableFuture<Long> asyncAddAndGet(long delta)
           
 ICompletableFuture<Void> asyncAlter(IFunction<Long,Long> function)
           
 ICompletableFuture<Long> asyncAlterAndGet(IFunction<Long,Long> function)
           
<R> ICompletableFuture<R>
asyncApply(IFunction<Long,R> function)
           
 ICompletableFuture<Boolean> asyncCompareAndSet(long expect, long update)
           
 ICompletableFuture<Long> asyncDecrementAndGet()
           
 ICompletableFuture<Long> asyncGet()
           
 ICompletableFuture<Long> asyncGetAndAdd(long delta)
           
 ICompletableFuture<Long> asyncGetAndAlter(IFunction<Long,Long> function)
           
 ICompletableFuture<Long> asyncGetAndIncrement()
           
 ICompletableFuture<Long> asyncGetAndSet(long newValue)
           
 ICompletableFuture<Long> asyncIncrementAndGet()
           
 ICompletableFuture<Void> asyncSet(long newValue)
           
 
Methods inherited from interface com.hazelcast.core.IAtomicLong
addAndGet, alter, alterAndGet, apply, compareAndSet, decrementAndGet, get, getAndAdd, getAndAlter, getAndIncrement, getAndSet, getName, incrementAndGet, set
 
Methods inherited from interface com.hazelcast.core.DistributedObject
destroy, getId, getPartitionKey, getServiceName
 

Method Detail

asyncAddAndGet

ICompletableFuture<Long> asyncAddAndGet(long delta)

asyncCompareAndSet

ICompletableFuture<Boolean> asyncCompareAndSet(long expect,
                                               long update)

asyncDecrementAndGet

ICompletableFuture<Long> asyncDecrementAndGet()

asyncGet

ICompletableFuture<Long> asyncGet()

asyncGetAndAdd

ICompletableFuture<Long> asyncGetAndAdd(long delta)

asyncGetAndSet

ICompletableFuture<Long> asyncGetAndSet(long newValue)

asyncIncrementAndGet

ICompletableFuture<Long> asyncIncrementAndGet()

asyncGetAndIncrement

ICompletableFuture<Long> asyncGetAndIncrement()

asyncSet

ICompletableFuture<Void> asyncSet(long newValue)

asyncAlter

ICompletableFuture<Void> asyncAlter(IFunction<Long,Long> function)

asyncAlterAndGet

ICompletableFuture<Long> asyncAlterAndGet(IFunction<Long,Long> function)

asyncGetAndAlter

ICompletableFuture<Long> asyncGetAndAlter(IFunction<Long,Long> function)

asyncApply

<R> ICompletableFuture<R> asyncApply(IFunction<Long,R> function)


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