Interface FilterIndexingServiceProvider
-
public interface FilterIndexingServiceProviderA service provider for filter indexing services. This is supposed to perform the filtering operation in a more efficient way than directly executing the filter by calling theCacheEventFilterConverter.filterAndConvert(Object, Object, Metadata, Object, Metadata, EventType)method. Implementations are discovered via theServiceLoaderorServiceFindermechanism. Implementations may have their dependencies injected using theInjectannotation.- Since:
- 7.2
- Author:
- anistor@redhat.com
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <K,V>
DelegatingCacheEntryListenerInvocation<K,V>interceptListenerInvocation(org.infinispan.notifications.cachelistener.CacheEntryListenerInvocation<K,V> invocation)Starts handling an invocation that uses anIndexedFilter.<K,V>
voidregisterListenerInvocations(boolean isClustered, boolean isPrimaryOnly, boolean filterAndConvert, IndexedFilter<?,?,?> indexedFilter, Map<Class<? extends Annotation>,List<DelegatingCacheEntryListenerInvocation<K,V>>> listeners, org.infinispan.encoding.DataConversion keyDataConversion, org.infinispan.encoding.DataConversion valueDataConversion)voidstart()Start the provider.voidstop()Stop the provider.booleansupportsFilter(IndexedFilter<?,?,?> indexedFilter)Reports whether this provider supports the given filter type.
-
-
-
Method Detail
-
start
void start()
Start the provider. This is called after the dependencies are injected.
-
supportsFilter
boolean supportsFilter(IndexedFilter<?,?,?> indexedFilter)
Reports whether this provider supports the given filter type.- Parameters:
indexedFilter- an indexable filter- Returns:
trueif the filter is supported,falseotherwise
-
interceptListenerInvocation
<K,V> DelegatingCacheEntryListenerInvocation<K,V> interceptListenerInvocation(org.infinispan.notifications.cachelistener.CacheEntryListenerInvocation<K,V> invocation)
Starts handling an invocation that uses anIndexedFilter.- Type Parameters:
K- cache key typeV- cache value type- Parameters:
invocation- the invocation to handle- Returns:
- the wrapped invocation
-
registerListenerInvocations
<K,V> void registerListenerInvocations(boolean isClustered, boolean isPrimaryOnly, boolean filterAndConvert, IndexedFilter<?,?,?> indexedFilter, Map<Class<? extends Annotation>,List<DelegatingCacheEntryListenerInvocation<K,V>>> listeners, org.infinispan.encoding.DataConversion keyDataConversion, org.infinispan.encoding.DataConversion valueDataConversion)
-
stop
void stop()
Stop the provider.
-
-