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 |
---|---|
Traversable<EntryView.ReadEntryView<K,V>> |
FunctionalMap.ReadOnlyMap.entries()
Provides a
Traversable that allows clients to navigate all cached entries. |
Modifier and Type | Method and Description |
---|---|
default void |
Listeners.ReadWriteListeners.ReadWriteListener.onCreate(EntryView.ReadEntryView<K,V> created)
Entry created event callback that receives a
EntryView.ReadEntryView
of the created entry. |
default void |
Listeners.ReadWriteListeners.ReadWriteListener.onModify(EntryView.ReadEntryView<K,V> before,
EntryView.ReadEntryView<K,V> after)
Entry modify/update event callback that receives
EntryView.ReadEntryView
of the previous entry as first parameter, and the EntryView.ReadEntryView
of the new entry. |
default void |
Listeners.ReadWriteListeners.ReadWriteListener.onModify(EntryView.ReadEntryView<K,V> before,
EntryView.ReadEntryView<K,V> after)
Entry modify/update event callback that receives
EntryView.ReadEntryView
of the previous entry as first parameter, and the EntryView.ReadEntryView
of the new entry. |
default void |
Listeners.ReadWriteListeners.ReadWriteListener.onRemove(EntryView.ReadEntryView<K,V> removed)
Entry removed event callback that receives a
EntryView.ReadEntryView
of the removed entry. |
void |
Listeners.WriteListeners.WriteListener.onWrite(EntryView.ReadEntryView<K,V> write)
Entry write event callback that receives a
EntryView.ReadEntryView
of the written entry. |
Modifier and Type | Method and Description |
---|---|
<R> CompletableFuture<R> |
FunctionalMap.ReadOnlyMap.eval(K key,
Function<EntryView.ReadEntryView<K,V>,R> f)
Evaluate a read-only function on the value associated with the key
and return a
CompletableFuture with the return type of the function. |
default <R> CompletableFuture<R> |
FunctionalMap.ReadOnlyMap.eval(K key,
SerializableFunction<EntryView.ReadEntryView<K,V>,R> f)
Same as
FunctionalMap.ReadOnlyMap.eval(Object, Function) except that the function must also
implement Serializable |
<R> Traversable<R> |
FunctionalMap.ReadOnlyMap.evalMany(Set<? extends K> keys,
Function<EntryView.ReadEntryView<K,V>,R> f)
Evaluate a read-only function on a key and potential value associated in
the functional map, for each of the keys in the set passed in, and
returns an
Traversable to work on each computed function's result. |
default <R> Traversable<R> |
FunctionalMap.ReadOnlyMap.evalMany(Set<? extends K> keys,
SerializableFunction<EntryView.ReadEntryView<K,V>,R> f)
Same as
FunctionalMap.ReadOnlyMap.evalMany(Set, Function) except that the function must also
implement Serializable |
AutoCloseable |
Listeners.ReadWriteListeners.onCreate(Consumer<EntryView.ReadEntryView<K,V>> f)
Add a create event specific listener by passing in a
Consumer to be called back each time a new cache entry is
created, passing in a EntryView.ReadEntryView of that new entry. |
AutoCloseable |
Listeners.ReadWriteListeners.onModify(BiConsumer<EntryView.ReadEntryView<K,V>,EntryView.ReadEntryView<K,V>> f)
Add a modify/update event specific listener by passing in a
BiConsumer to be called back each time an entry is
modified or updated, passing in a EntryView.ReadEntryView of the
previous entry as first parameter, and a EntryView.ReadEntryView of the
new value as second parameter. |
AutoCloseable |
Listeners.ReadWriteListeners.onModify(BiConsumer<EntryView.ReadEntryView<K,V>,EntryView.ReadEntryView<K,V>> f)
Add a modify/update event specific listener by passing in a
BiConsumer to be called back each time an entry is
modified or updated, passing in a EntryView.ReadEntryView of the
previous entry as first parameter, and a EntryView.ReadEntryView of the
new value as second parameter. |
AutoCloseable |
Listeners.ReadWriteListeners.onRemove(Consumer<EntryView.ReadEntryView<K,V>> f)
Add a remove event specific listener by passing in a
Consumer to be called back each time an entry is
removed, passing in the EntryView.ReadEntryView of the removed entry. |
AutoCloseable |
Listeners.WriteListeners.onWrite(Consumer<EntryView.ReadEntryView<K,V>> f)
Add a write event listener by passing in a
Consumer to be
called each time a cache entry is created, modified/updated or
removed. |
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.