public class AtomixConsistentMap extends io.atomix.resource.Resource<AtomixConsistentMap> implements org.onosproject.store.service.AsyncConsistentMap<String,byte[]>
AsyncConsistentMap primitive.| Modifier and Type | Field and Description |
|---|---|
static String |
CHANGE_SUBJECT |
| Constructor and Description |
|---|
AtomixConsistentMap(io.atomix.copycat.client.CopycatClient client,
io.atomix.resource.Resource.Options options) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
addListener(org.onosproject.store.service.MapEventListener<String,byte[]> listener) |
CompletableFuture<Void> |
clear() |
CompletableFuture<Void> |
commit(org.onosproject.store.primitives.TransactionId transactionId) |
CompletableFuture<org.onosproject.store.service.Versioned<byte[]>> |
computeIf(String key,
Predicate<? super byte[]> condition,
BiFunction<? super String,? super byte[],? extends byte[]> remappingFunction) |
CompletableFuture<Boolean> |
containsKey(String key) |
CompletableFuture<Boolean> |
containsValue(byte[] value) |
CompletableFuture<Set<Map.Entry<String,org.onosproject.store.service.Versioned<byte[]>>>> |
entrySet() |
CompletableFuture<org.onosproject.store.service.Versioned<byte[]>> |
get(String key) |
CompletableFuture<Boolean> |
isEmpty() |
CompletableFuture<Set<String>> |
keySet() |
String |
name() |
CompletableFuture<AtomixConsistentMap> |
open() |
CompletableFuture<Boolean> |
prepare(org.onosproject.store.service.MapTransaction<String,byte[]> transaction) |
CompletableFuture<org.onosproject.store.service.Versioned<byte[]>> |
put(String key,
byte[] value) |
CompletableFuture<org.onosproject.store.service.Versioned<byte[]>> |
putAndGet(String key,
byte[] value) |
CompletableFuture<org.onosproject.store.service.Versioned<byte[]>> |
putIfAbsent(String key,
byte[] value) |
CompletableFuture<org.onosproject.store.service.Versioned<byte[]>> |
remove(String key) |
CompletableFuture<Boolean> |
remove(String key,
byte[] value) |
CompletableFuture<Boolean> |
remove(String key,
long version) |
CompletableFuture<Void> |
removeListener(org.onosproject.store.service.MapEventListener<String,byte[]> listener) |
CompletableFuture<org.onosproject.store.service.Versioned<byte[]>> |
replace(String key,
byte[] value) |
CompletableFuture<Boolean> |
replace(String key,
byte[] oldValue,
byte[] newValue) |
CompletableFuture<Boolean> |
replace(String key,
long oldVersion,
byte[] newValue) |
CompletableFuture<Void> |
rollback(org.onosproject.store.primitives.TransactionId transactionId) |
CompletableFuture<Integer> |
size() |
CompletableFuture<Collection<org.onosproject.store.service.Versioned<byte[]>>> |
values() |
close, configure, context, delete, equals, hashCode, isClosed, isOpen, onStateChange, readConsistency, state, submit, submit, submit, submit, toString, type, with, with, writeConsistencyclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final String CHANGE_SUBJECT
public AtomixConsistentMap(io.atomix.copycat.client.CopycatClient client,
io.atomix.resource.Resource.Options options)
public String name()
name in interface org.onosproject.store.service.DistributedPrimitivepublic CompletableFuture<AtomixConsistentMap> open()
open in interface io.atomix.catalyst.util.Managed<AtomixConsistentMap>open in class io.atomix.resource.Resource<AtomixConsistentMap>public CompletableFuture<Boolean> isEmpty()
isEmpty in interface org.onosproject.store.service.AsyncConsistentMap<String,byte[]>public CompletableFuture<Integer> size()
size in interface org.onosproject.store.service.AsyncConsistentMap<String,byte[]>public CompletableFuture<Boolean> containsKey(String key)
containsKey in interface org.onosproject.store.service.AsyncConsistentMap<String,byte[]>public CompletableFuture<Boolean> containsValue(byte[] value)
containsValue in interface org.onosproject.store.service.AsyncConsistentMap<String,byte[]>public CompletableFuture<org.onosproject.store.service.Versioned<byte[]>> get(String key)
get in interface org.onosproject.store.service.AsyncConsistentMap<String,byte[]>public CompletableFuture<Set<String>> keySet()
keySet in interface org.onosproject.store.service.AsyncConsistentMap<String,byte[]>public CompletableFuture<Collection<org.onosproject.store.service.Versioned<byte[]>>> values()
values in interface org.onosproject.store.service.AsyncConsistentMap<String,byte[]>public CompletableFuture<Set<Map.Entry<String,org.onosproject.store.service.Versioned<byte[]>>>> entrySet()
entrySet in interface org.onosproject.store.service.AsyncConsistentMap<String,byte[]>public CompletableFuture<org.onosproject.store.service.Versioned<byte[]>> put(String key, byte[] value)
put in interface org.onosproject.store.service.AsyncConsistentMap<String,byte[]>public CompletableFuture<org.onosproject.store.service.Versioned<byte[]>> putAndGet(String key, byte[] value)
putAndGet in interface org.onosproject.store.service.AsyncConsistentMap<String,byte[]>public CompletableFuture<org.onosproject.store.service.Versioned<byte[]>> putIfAbsent(String key, byte[] value)
putIfAbsent in interface org.onosproject.store.service.AsyncConsistentMap<String,byte[]>public CompletableFuture<org.onosproject.store.service.Versioned<byte[]>> remove(String key)
remove in interface org.onosproject.store.service.AsyncConsistentMap<String,byte[]>public CompletableFuture<Boolean> remove(String key, byte[] value)
remove in interface org.onosproject.store.service.AsyncConsistentMap<String,byte[]>public CompletableFuture<Boolean> remove(String key, long version)
remove in interface org.onosproject.store.service.AsyncConsistentMap<String,byte[]>public CompletableFuture<org.onosproject.store.service.Versioned<byte[]>> replace(String key, byte[] value)
replace in interface org.onosproject.store.service.AsyncConsistentMap<String,byte[]>public CompletableFuture<Boolean> replace(String key, byte[] oldValue, byte[] newValue)
replace in interface org.onosproject.store.service.AsyncConsistentMap<String,byte[]>public CompletableFuture<Boolean> replace(String key, long oldVersion, byte[] newValue)
replace in interface org.onosproject.store.service.AsyncConsistentMap<String,byte[]>public CompletableFuture<Void> clear()
clear in interface org.onosproject.store.service.AsyncConsistentMap<String,byte[]>public CompletableFuture<org.onosproject.store.service.Versioned<byte[]>> computeIf(String key, Predicate<? super byte[]> condition, BiFunction<? super String,? super byte[],? extends byte[]> remappingFunction)
computeIf in interface org.onosproject.store.service.AsyncConsistentMap<String,byte[]>public CompletableFuture<Void> addListener(org.onosproject.store.service.MapEventListener<String,byte[]> listener)
addListener in interface org.onosproject.store.service.AsyncConsistentMap<String,byte[]>public CompletableFuture<Void> removeListener(org.onosproject.store.service.MapEventListener<String,byte[]> listener)
removeListener in interface org.onosproject.store.service.AsyncConsistentMap<String,byte[]>public CompletableFuture<Boolean> prepare(org.onosproject.store.service.MapTransaction<String,byte[]> transaction)
prepare in interface org.onosproject.store.service.AsyncConsistentMap<String,byte[]>public CompletableFuture<Void> commit(org.onosproject.store.primitives.TransactionId transactionId)
commit in interface org.onosproject.store.service.AsyncConsistentMap<String,byte[]>public CompletableFuture<Void> rollback(org.onosproject.store.primitives.TransactionId transactionId)
rollback in interface org.onosproject.store.service.AsyncConsistentMap<String,byte[]>Copyright © 2016. All rights reserved.