public class AtomixConsistentMap extends io.atomix.resource.AbstractResource<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,
Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
addListener(org.onosproject.store.service.MapEventListener<String,byte[]> listener,
Executor executor) |
void |
addStatusChangeListener(Consumer<org.onosproject.store.service.DistributedPrimitive.Status> 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<Boolean> |
prepareAndCommit(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) |
void |
removeStatusChangeListener(Consumer<org.onosproject.store.service.DistributedPrimitive.Status> 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() |
Collection<Consumer<org.onosproject.store.service.DistributedPrimitive.Status>> |
statusChangeListeners() |
CompletableFuture<Collection<org.onosproject.store.service.Versioned<byte[]>>> |
values() |
close, config, context, delete, equals, hashCode, isClosed, isOpen, onStateChange, options, serializer, state, toString, typeclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final String CHANGE_SUBJECT
public AtomixConsistentMap(io.atomix.copycat.client.CopycatClient client,
Properties properties)
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 interface io.atomix.resource.Resource<AtomixConsistentMap>open in class io.atomix.resource.AbstractResource<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, Executor executor)
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[]>public CompletableFuture<Boolean> prepareAndCommit(org.onosproject.store.service.MapTransaction<String,byte[]> transaction)
prepareAndCommit in interface org.onosproject.store.service.AsyncConsistentMap<String,byte[]>public void addStatusChangeListener(Consumer<org.onosproject.store.service.DistributedPrimitive.Status> listener)
addStatusChangeListener in interface org.onosproject.store.service.DistributedPrimitivepublic void removeStatusChangeListener(Consumer<org.onosproject.store.service.DistributedPrimitive.Status> listener)
removeStatusChangeListener in interface org.onosproject.store.service.DistributedPrimitivepublic Collection<Consumer<org.onosproject.store.service.DistributedPrimitive.Status>> statusChangeListeners()
statusChangeListeners in interface org.onosproject.store.service.DistributedPrimitiveCopyright © 2016. All rights reserved.