public class ExecutingAsyncAtomicCounterMap<K> extends ExecutingDistributedPrimitive implements org.onosproject.store.service.AsyncAtomicCounterMap<K>
AsyncAtomicCounterMap that executes asynchronous callbacks on a user provided
Executor.| Constructor and Description |
|---|
ExecutingAsyncAtomicCounterMap(org.onosproject.store.service.AsyncAtomicCounterMap<K> delegateMap,
Executor orderedExecutor,
Executor threadPoolExecutor) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Long> |
addAndGet(K key,
long delta) |
CompletableFuture<Void> |
clear() |
CompletableFuture<Long> |
decrementAndGet(K key) |
CompletableFuture<Long> |
get(K key) |
CompletableFuture<Long> |
getAndAdd(K key,
long delta) |
CompletableFuture<Long> |
getAndDecrement(K key) |
CompletableFuture<Long> |
getAndIncrement(K key) |
CompletableFuture<Long> |
incrementAndGet(K key) |
CompletableFuture<Boolean> |
isEmpty() |
CompletableFuture<Long> |
put(K key,
long newValue) |
CompletableFuture<Long> |
putIfAbsent(K key,
long newValue) |
CompletableFuture<Long> |
remove(K key) |
CompletableFuture<Boolean> |
remove(K key,
long value) |
CompletableFuture<Boolean> |
replace(K key,
long expectedOldValue,
long newValue) |
CompletableFuture<Integer> |
size() |
addStatusChangeListener, asyncFuture, destroy, removeStatusChangeListenerapplicationId, equals, hashCode, name, primitiveType, statusChangeListeners, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic CompletableFuture<Long> incrementAndGet(K key)
incrementAndGet in interface org.onosproject.store.service.AsyncAtomicCounterMap<K>public CompletableFuture<Long> decrementAndGet(K key)
decrementAndGet in interface org.onosproject.store.service.AsyncAtomicCounterMap<K>public CompletableFuture<Long> getAndIncrement(K key)
getAndIncrement in interface org.onosproject.store.service.AsyncAtomicCounterMap<K>public CompletableFuture<Long> getAndDecrement(K key)
getAndDecrement in interface org.onosproject.store.service.AsyncAtomicCounterMap<K>public CompletableFuture<Long> addAndGet(K key, long delta)
addAndGet in interface org.onosproject.store.service.AsyncAtomicCounterMap<K>public CompletableFuture<Long> getAndAdd(K key, long delta)
getAndAdd in interface org.onosproject.store.service.AsyncAtomicCounterMap<K>public CompletableFuture<Long> get(K key)
get in interface org.onosproject.store.service.AsyncAtomicCounterMap<K>public CompletableFuture<Long> put(K key, long newValue)
put in interface org.onosproject.store.service.AsyncAtomicCounterMap<K>public CompletableFuture<Long> putIfAbsent(K key, long newValue)
putIfAbsent in interface org.onosproject.store.service.AsyncAtomicCounterMap<K>public CompletableFuture<Boolean> replace(K key, long expectedOldValue, long newValue)
replace in interface org.onosproject.store.service.AsyncAtomicCounterMap<K>public CompletableFuture<Long> remove(K key)
remove in interface org.onosproject.store.service.AsyncAtomicCounterMap<K>public CompletableFuture<Boolean> remove(K key, long value)
remove in interface org.onosproject.store.service.AsyncAtomicCounterMap<K>public CompletableFuture<Integer> size()
size in interface org.onosproject.store.service.AsyncAtomicCounterMap<K>public CompletableFuture<Boolean> isEmpty()
isEmpty in interface org.onosproject.store.service.AsyncAtomicCounterMap<K>public CompletableFuture<Void> clear()
clear in interface org.onosproject.store.service.AsyncAtomicCounterMap<K>