Uses of Interface
org.infinispan.functional.EntryView.ReadEntryView
Package
Description
Commands that operate on the cache, either locally or remotely.
Functional API package
-
Uses of EntryView.ReadEntryView in org.infinispan.commands
Modifier and TypeMethodDescription<K,
V, R> org.infinispan.commands.functional.ReadOnlyKeyCommand <K, V, R> CommandsFactory.buildReadOnlyKeyCommand
(Object key, Function<EntryView.ReadEntryView<K, V>, R> f, int segment, Params params, DataConversion keyDataConversion, DataConversion valueDataConversion) <K,
V, R> org.infinispan.commands.functional.ReadOnlyKeyCommand <K, V, R> CommandsFactoryImpl.buildReadOnlyKeyCommand
(Object key, Function<EntryView.ReadEntryView<K, V>, R> f, int segment, Params params, DataConversion keyDataConversion, DataConversion valueDataConversion) <K,
V, R> org.infinispan.commands.functional.ReadOnlyManyCommand <K, V, R> CommandsFactory.buildReadOnlyManyCommand
(Collection<?> keys, Function<EntryView.ReadEntryView<K, V>, R> f, Params params, DataConversion keyDataConversion, DataConversion valueDataConversion) <K,
V, R> org.infinispan.commands.functional.ReadOnlyManyCommand <K, V, R> CommandsFactoryImpl.buildReadOnlyManyCommand
(Collection<?> keys, Function<EntryView.ReadEntryView<K, V>, R> f, Params params, DataConversion keyDataConversion, DataConversion valueDataConversion) <K,
V, R> org.infinispan.commands.functional.TxReadOnlyKeyCommand <K, V, R> CommandsFactory.buildTxReadOnlyKeyCommand
(Object key, Function<EntryView.ReadEntryView<K, V>, R> f, List<org.infinispan.commands.functional.Mutation<K, V, ?>> mutations, int segment, Params params, DataConversion keyDataConversion, DataConversion valueDataConversion) <K,
V, R> org.infinispan.commands.functional.TxReadOnlyKeyCommand <K, V, R> CommandsFactoryImpl.buildTxReadOnlyKeyCommand
(Object key, Function<EntryView.ReadEntryView<K, V>, R> f, List<org.infinispan.commands.functional.Mutation<K, V, ?>> mutations, int segment, Params params, DataConversion keyDataConversion, DataConversion valueDataConversion) -
Uses of EntryView.ReadEntryView in org.infinispan.functional
Modifier and TypeInterfaceDescriptionstatic interface
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 TypeMethodDescriptionFunctionalMap.ReadOnlyMap.entries()
Provides aTraversable
that allows clients to navigate all cached entries.Modifier and TypeMethodDescriptiondefault 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.Modifier and TypeMethodDescription<R> CompletableFuture
<R> 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, 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, SerializableFunction<EntryView.ReadEntryView<K, V>, R> f) Same asFunctionalMap.ReadOnlyMap.evalMany(Set, Function)
except that the function must also implementSerializable
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.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.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.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.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. -
Uses of EntryView.ReadEntryView in org.infinispan.functional.impl
Modifier and TypeMethodDescriptionstatic <K,
V> EntryView.ReadEntryView <K, V> static <K,
V> EntryView.ReadEntryView <K, V> EntryViews.noValue
(Object key, DataConversion keyDataConversion) static <K,
V> EntryView.ReadEntryView <K, V> static <K,
V> EntryView.ReadEntryView <K, V> EntryViews.readOnly
(CacheEntry entry) static <K,
V> EntryView.ReadEntryView <K, V> EntryViews.readOnly
(CacheEntry<K, V> entry, DataConversion keyDataConversion, DataConversion valueDataConversion) Modifier and TypeMethodDescriptionvoid
FunctionalNotifier.notifyOnRemove
(EntryView.ReadEntryView<K, V> removed) Notify registeredListeners.ReadWriteListeners.ReadWriteListener
instances of the removed entry passing in the removed entry.void
FunctionalNotifierImpl.notifyOnRemove
(EntryView.ReadEntryView<K, V> removed) Modifier and TypeMethodDescription<R> CompletableFuture
<R> <R> CompletableFuture
<R> <R> Traversable
<R> <R> Traversable
<R> FunctionalNotifierImpl.onCreate
(Consumer<EntryView.ReadEntryView<K, V>> f) FunctionalNotifierImpl.onModify
(BiConsumer<EntryView.ReadEntryView<K, V>, EntryView.ReadEntryView<K, V>> f) FunctionalNotifierImpl.onModify
(BiConsumer<EntryView.ReadEntryView<K, V>, EntryView.ReadEntryView<K, V>> f) FunctionalNotifierImpl.onRemove
(Consumer<EntryView.ReadEntryView<K, V>> f) FunctionalNotifierImpl.onWrite
(Consumer<EntryView.ReadEntryView<K, V>> f) -
Uses of EntryView.ReadEntryView in org.infinispan.marshall.core
Modifier and TypeMethodDescriptionstatic <K,
V> Function <EntryView.ReadEntryView<K, V>, Boolean> MarshallableFunctions.returnReadOnlyFindIsPresent()
static <K,
V> Function <EntryView.ReadEntryView<K, V>, V> MarshallableFunctions.returnReadOnlyFindOrNull()