Package | Description |
---|---|
org.infinispan.functional |
Commons 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<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. |
CompletableFuture<Void> |
FunctionalMap.WriteOnlyMap.eval(K key,
V value,
BiConsumer<V,EntryView.WriteEntryView<V>> f)
Evaluate a write-only
BiConsumer operation, with a value
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. |
CompletableFuture<Void> |
FunctionalMap.WriteOnlyMap.evalAll(Consumer<EntryView.WriteEntryView<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. |
CompletableFuture<Void> |
FunctionalMap.WriteOnlyMap.evalMany(Map<? extends K,? extends V> entries,
BiConsumer<V,EntryView.WriteEntryView<V>> f)
Evaluate a write-only
BiConsumer operation, with a value
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. |
CompletableFuture<Void> |
FunctionalMap.WriteOnlyMap.evalMany(Set<? extends K> keys,
Consumer<EntryView.WriteEntryView<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. |
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.