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 |
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 |
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
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. |
class |
CompositeCacheEventFilter<K,V>
Allows AND-composing several cache event filters.
|
class |
KeyFilterAsCacheEventFilter<K>
CacheEventFilter that implements it's filtering solely on the use of the provided KeyFilter
|
class |
KeyValueFilterAsCacheEventFilter<K,V>
CacheEventFilter that implements it's filtering solely on the use of the provided KeyValueFilter
|
class |
PostCacheEventFilter<K,V>
A Filter that only allows post events to be accepted.
|
Modifier and Type | Method and Description |
---|---|
CacheEventFilter<? super K,? super V> |
DelegatingCacheEntryListenerInvocation.getFilter() |
<K,V> CacheEventFilter<K,V> |
CacheEventFilterFactory.getFilter(Object[] params)
Retrieves a cache event filter instance from this factory.
|
Constructor and Description |
---|
CacheEventFilterAsKeyValueFilter(CacheEventFilter<K,V> filter) |
CompositeCacheEventFilter(CacheEventFilter<? super K,? super V>... filters) |
Copyright © 2017 JBoss, a division of Red Hat. All rights reserved.