Package | Description |
---|---|
org.infinispan.notifications |
Notifications and eventing for listeners on both the Cache and CacheManager interfaces.
|
org.infinispan.notifications.cachelistener.filter |
Cache -specific notifications and eventing filtering classes. |
Modifier and Type | Method and Description |
---|---|
<C> void |
DataConversionAwareListenable.addFilteredListener(ListenerHolder listenerHolder,
CacheEventFilter<? super K,? super V> filter,
CacheEventConverter<? super K,? super V,C> converter,
Set<Class<? extends Annotation>> filterAnnotations) |
<C> void |
FilteringListenable.addFilteredListener(Object listener,
CacheEventFilter<? super K,? super V> filter,
CacheEventConverter<? super K,? super V,C> converter,
Set<Class<? extends Annotation>> filterAnnotations)
Registers a listener limiting the cache-entry specific events only to
annotations that are passed in as parameter.
|
<C> void |
DataConversionAwareListenable.addListener(ListenerHolder listenerHolder,
CacheEventFilter<? super K,? super V> filter,
CacheEventConverter<? super K,? super V,C> converter,
ClassLoader classLoader) |
<C> void |
FilteringListenable.addListener(Object listener,
CacheEventFilter<? super K,? super V> filter,
CacheEventConverter<? super K,? super V,C> converter)
Registers a listener that will be notified on events that pass the filter condition.
|
<C> void |
ClassLoaderAwareFilteringListenable.addListener(Object listener,
CacheEventFilter<? super K,? super V> filter,
CacheEventConverter<? super K,? super V,C> converter,
ClassLoader classLoader)
Adds a listener with the provided filter and converter and using a given classloader when invoked.
|
Modifier and Type | Interface and Description |
---|---|
interface |
CacheEventFilterConverter<K,V,C>
This interface is an optimization that can be used when an event filter and converter are most efficiently used as
the same object composing the filtering and conversion in the same method invocation.
|
interface |
IndexedFilter<K,V,C>
A marker interface for filters that can be handled efficiently by a
FilterIndexingServiceProvider . |
Modifier and Type | Class and Description |
---|---|
class |
AbstractCacheEventFilterConverter<K,V,C>
This is a base class that should be used when implementing a CacheEventFilterConverter that provides default
implementations for the
CacheEventFilter.accept(Object, Object, org.infinispan.metadata.Metadata, Object, org.infinispan.metadata.Metadata, EventType)
and Converter.convert(Object, Object, org.infinispan.metadata.Metadata) methods so they just call the
CacheEventFilterConverter.filterAndConvert(Object, Object, org.infinispan.metadata.Metadata, Object, org.infinispan.metadata.Metadata, EventType)
method and then do the right thing. |
Modifier and Type | Method and Description |
---|---|
<C> CacheEventConverter<? super K,? super V,C> |
DelegatingCacheEntryListenerInvocation.getConverter() |
<K,V,C> CacheEventConverter<K,V,C> |
CacheEventConverterFactory.getConverter(Object[] params)
Retrieves a cache event converter instance from this factory.
|
Constructor and Description |
---|
CacheEventConverterAsConverter(CacheEventConverter<K,V,C> converter) |
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.