public class TranscodingAsyncAtomicCounterMap<K1,K2> extends Object implements org.onosproject.store.service.AsyncAtomicCounterMap<K1>
AsyncAtomicCounterMap that transcodes keys.| Constructor and Description |
|---|
TranscodingAsyncAtomicCounterMap(org.onosproject.store.service.AsyncAtomicCounterMap<K2> backingMap,
Function<K1,K2> keyEncoder,
Function<K2,K1> keyDecoder) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Long> |
addAndGet(K1 key,
long delta) |
CompletableFuture<Void> |
clear() |
CompletableFuture<Long> |
decrementAndGet(K1 key) |
CompletableFuture<Long> |
get(K1 key) |
CompletableFuture<Long> |
getAndAdd(K1 key,
long delta) |
CompletableFuture<Long> |
getAndDecrement(K1 key) |
CompletableFuture<Long> |
getAndIncrement(K1 key) |
CompletableFuture<Long> |
incrementAndGet(K1 key) |
CompletableFuture<Boolean> |
isEmpty() |
String |
name() |
CompletableFuture<Long> |
put(K1 key,
long newValue) |
CompletableFuture<Long> |
putIfAbsent(K1 key,
long newValue) |
CompletableFuture<Long> |
remove(K1 key) |
CompletableFuture<Boolean> |
remove(K1 key,
long value) |
CompletableFuture<Boolean> |
replace(K1 key,
long expectedOldValue,
long newValue) |
CompletableFuture<Integer> |
size() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic String name()
name in interface org.onosproject.store.service.DistributedPrimitivepublic CompletableFuture<Long> incrementAndGet(K1 key)
incrementAndGet in interface org.onosproject.store.service.AsyncAtomicCounterMap<K1>public CompletableFuture<Long> decrementAndGet(K1 key)
decrementAndGet in interface org.onosproject.store.service.AsyncAtomicCounterMap<K1>public CompletableFuture<Long> getAndIncrement(K1 key)
getAndIncrement in interface org.onosproject.store.service.AsyncAtomicCounterMap<K1>public CompletableFuture<Long> getAndDecrement(K1 key)
getAndDecrement in interface org.onosproject.store.service.AsyncAtomicCounterMap<K1>public CompletableFuture<Long> addAndGet(K1 key, long delta)
addAndGet in interface org.onosproject.store.service.AsyncAtomicCounterMap<K1>public CompletableFuture<Long> getAndAdd(K1 key, long delta)
getAndAdd in interface org.onosproject.store.service.AsyncAtomicCounterMap<K1>public CompletableFuture<Long> get(K1 key)
get in interface org.onosproject.store.service.AsyncAtomicCounterMap<K1>public CompletableFuture<Long> put(K1 key, long newValue)
put in interface org.onosproject.store.service.AsyncAtomicCounterMap<K1>public CompletableFuture<Long> putIfAbsent(K1 key, long newValue)
putIfAbsent in interface org.onosproject.store.service.AsyncAtomicCounterMap<K1>public CompletableFuture<Boolean> replace(K1 key, long expectedOldValue, long newValue)
replace in interface org.onosproject.store.service.AsyncAtomicCounterMap<K1>public CompletableFuture<Long> remove(K1 key)
remove in interface org.onosproject.store.service.AsyncAtomicCounterMap<K1>public CompletableFuture<Boolean> remove(K1 key, long value)
remove in interface org.onosproject.store.service.AsyncAtomicCounterMap<K1>public CompletableFuture<Integer> size()
size in interface org.onosproject.store.service.AsyncAtomicCounterMap<K1>public CompletableFuture<Boolean> isEmpty()
isEmpty in interface org.onosproject.store.service.AsyncAtomicCounterMap<K1>public CompletableFuture<Void> clear()
clear in interface org.onosproject.store.service.AsyncAtomicCounterMap<K1>