Package | Description |
---|---|
org.infinispan.commons.api.functional |
Commons Functional API package
|
org.infinispan.commons.marshall |
Provides Infinispan-specific input and output streams, buffers and related utilities.
|
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. |
Modifier and Type | Method and Description |
---|---|
static <V> Consumer<EntryView.WriteEntryView<V>> |
MarshallableFunctions.removeConsumer() |
static <V> BiConsumer<V,EntryView.WriteEntryView<V>> |
MarshallableFunctions.setValueConsumer() |
static <V> BiConsumer<V,EntryView.WriteEntryView<V>> |
MarshallableFunctions.setValueMetasConsumer(MetaParam.Writable... metas) |
Copyright © 2015 JBoss, a division of Red Hat. All rights reserved.