Package | Description |
---|---|
org.infinispan.functional |
Functional API package
|
Modifier and Type | Interface and Description |
---|---|
static interface |
EntryView.ReadWriteEntryView<K,V>
Expose information about a cache entry potentially associated with a key
in the functional map, and allows that cache entry to be written with
new value and/or new metadata parameters.
|
Modifier and Type | Method and Description |
---|---|
CompletableFuture<Void> |
FunctionalMap.WriteOnlyMap.eval(K key,
Consumer<EntryView.WriteEntryView<K,V>> f)
Evaluate a write-only
Consumer operation with a
EntryView.WriteEntryView of the value associated with the key,
and return a CompletableFuture which will be
completed with the object returned by the operation. |
default CompletableFuture<Void> |
FunctionalMap.WriteOnlyMap.eval(K key,
SerializableConsumer<EntryView.WriteEntryView<K,V>> f)
Same as
FunctionalMap.WriteOnlyMap.eval(Object, Consumer) except that the function must also
implement Serializable |
<T> CompletableFuture<Void> |
FunctionalMap.WriteOnlyMap.eval(K key,
T argument,
BiConsumer<T,EntryView.WriteEntryView<K,V>> f)
Evaluate a write-only
BiConsumer operation, with an argument
passed in and a EntryView.WriteEntryView of the value associated with
the key, and return a CompletableFuture which will be
completed when the operation completes. |
default <T> CompletableFuture<Void> |
FunctionalMap.WriteOnlyMap.eval(K key,
T argument,
SerializableBiConsumer<T,EntryView.WriteEntryView<K,V>> f)
Same as
FunctionalMap.WriteOnlyMap.eval(Object, Object, BiConsumer) except that the function must also
implement Serializable |
CompletableFuture<Void> |
FunctionalMap.WriteOnlyMap.evalAll(Consumer<EntryView.WriteEntryView<K,V>> f)
Evaluate a write-only
Consumer operation with the
EntryView.WriteEntryView of the value associated with the key, for all
existing keys in functional map, and returns a CompletableFuture
that will be completed when the write-only operation has been executed
against all the entries. |
default CompletableFuture<Void> |
FunctionalMap.WriteOnlyMap.evalAll(SerializableConsumer<EntryView.WriteEntryView<K,V>> f)
Same as
FunctionalMap.WriteOnlyMap.evalAll(Consumer) except that the function must also
implement Serializable |
<T> CompletableFuture<Void> |
FunctionalMap.WriteOnlyMap.evalMany(Map<? extends K,? extends T> arguments,
BiConsumer<T,EntryView.WriteEntryView<K,V>> f)
Evaluate a write-only
BiConsumer operation, with an argument
passed in and a EntryView.WriteEntryView of the value associated with
the key, for each of the keys in the set passed in, and returns a
CompletableFuture that will be completed when the write-only
operation has been executed against all the entries. |
default <T> CompletableFuture<Void> |
FunctionalMap.WriteOnlyMap.evalMany(Map<? extends K,? extends T> arguments,
SerializableBiConsumer<T,EntryView.WriteEntryView<K,V>> f)
Same as
FunctionalMap.WriteOnlyMap.evalMany(Map, BiConsumer) except that the function must also
implement Serializable |
CompletableFuture<Void> |
FunctionalMap.WriteOnlyMap.evalMany(Set<? extends K> keys,
Consumer<EntryView.WriteEntryView<K,V>> f)
Evaluate a write-only
Consumer operation with the
EntryView.WriteEntryView of the value associated with the key, for each
of the keys in the set passed in, and returns a
CompletableFuture that will be completed when the write-only
operation has been executed against all the entries. |
default CompletableFuture<Void> |
FunctionalMap.WriteOnlyMap.evalMany(Set<? extends K> keys,
SerializableConsumer<EntryView.WriteEntryView<K,V>> f)
Same as
FunctionalMap.WriteOnlyMap.evalMany(Set, Consumer) except that the function must also
implement Serializable |
Copyright © 2019 JBoss, a division of Red Hat. All rights reserved.