Uses of Interface
org.infinispan.functional.EntryView.ReadEntryView
-
Packages that use EntryView.ReadEntryView Package Description org.infinispan.functional Functional API package -
-
Uses of EntryView.ReadEntryView in org.infinispan.functional
Subinterfaces of EntryView.ReadEntryView in org.infinispan.functional Modifier and Type Interface 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.Methods in org.infinispan.functional that return types with arguments of type EntryView.ReadEntryView Modifier and Type Method Description Traversable<EntryView.ReadEntryView<K,V>>
FunctionalMap.ReadOnlyMap. entries()
Provides aTraversable
that allows clients to navigate all cached entries.Methods in org.infinispan.functional with parameters of type EntryView.ReadEntryView Modifier and Type Method Description default void
Listeners.ReadWriteListeners.ReadWriteListener. onCreate(EntryView.ReadEntryView<K,V> created)
Entry created event callback that receives aEntryView.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 receivesEntryView.ReadEntryView
of the previous entry as first parameter, and theEntryView.ReadEntryView
of the new entry.default void
Listeners.ReadWriteListeners.ReadWriteListener. onRemove(EntryView.ReadEntryView<K,V> removed)
Entry removed event callback that receives aEntryView.ReadEntryView
of the removed entry.void
Listeners.WriteListeners.WriteListener. onWrite(EntryView.ReadEntryView<K,V> write)
Entry write event callback that receives aEntryView.ReadEntryView
of the written entry.Method parameters in org.infinispan.functional with type arguments of type EntryView.ReadEntryView Modifier and Type Method 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 aCompletableFuture
with the return type of the function.default <R> CompletableFuture<R>
FunctionalMap.ReadOnlyMap. eval(K key, org.infinispan.util.function.SerializableFunction<EntryView.ReadEntryView<K,V>,R> f)
Same asFunctionalMap.ReadOnlyMap.eval(Object, Function)
except that the function must also implementSerializable
<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 anTraversable
to work on each computed function's result.default <R> Traversable<R>
FunctionalMap.ReadOnlyMap. evalMany(Set<? extends K> keys, org.infinispan.util.function.SerializableFunction<EntryView.ReadEntryView<K,V>,R> f)
Same asFunctionalMap.ReadOnlyMap.evalMany(Set, Function)
except that the function must also implementSerializable
AutoCloseable
Listeners.ReadWriteListeners. onCreate(Consumer<EntryView.ReadEntryView<K,V>> f)
Add a create event specific listener by passing in aConsumer
to be called back each time a new cache entry is created, passing in aEntryView.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 aBiConsumer
to be called back each time an entry is modified or updated, passing in aEntryView.ReadEntryView
of the previous entry as first parameter, and aEntryView.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 aBiConsumer
to be called back each time an entry is modified or updated, passing in aEntryView.ReadEntryView
of the previous entry as first parameter, and aEntryView.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 aConsumer
to be called back each time an entry is removed, passing in theEntryView.ReadEntryView
of the removed entry.AutoCloseable
Listeners.WriteListeners. onWrite(Consumer<EntryView.ReadEntryView<K,V>> f)
Add a write event listener by passing in aConsumer
to be called each time a cache entry is created, modified/updated or removed.
-