Class IckleContinuousQueryCacheEventFilterConverter<K,V,C>

java.lang.Object
org.infinispan.notifications.cachelistener.filter.AbstractCacheEventFilterConverter<K,V,C>
org.infinispan.query.core.impl.continuous.IckleContinuousQueryCacheEventFilterConverter<K,V,C>
All Implemented Interfaces:
org.infinispan.notifications.cachelistener.filter.CacheEventConverter<K,V,C>, org.infinispan.notifications.cachelistener.filter.CacheEventFilter<K,V>, org.infinispan.notifications.cachelistener.filter.CacheEventFilterConverter<K,V,C>, org.infinispan.notifications.cachelistener.filter.IndexedFilter<K,V,C>

public class IckleContinuousQueryCacheEventFilterConverter<K,V,C> extends org.infinispan.notifications.cachelistener.filter.AbstractCacheEventFilterConverter<K,V,C> implements org.infinispan.notifications.cachelistener.filter.IndexedFilter<K,V,C>
Since:
8.0
Author:
anistor@redhat.com
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected String
     
    protected org.infinispan.objectfilter.Matcher
    The Matcher, acquired via dependency injection.
    protected Class<? extends org.infinispan.objectfilter.Matcher>
    The implementation class of the Matcher component to lookup and use.
    protected final Map<String,Object>
     
    protected org.infinispan.objectfilter.ObjectFilter
    The ObjectFilter is created lazily.
    protected QueryCache
    Optional cache for query objects.
    protected final String
    The Ickle query to execute.
  • Constructor Summary

    Constructors
    Constructor
    Description
    IckleContinuousQueryCacheEventFilterConverter(String queryString, Map<String,Object> namedParameters, Class<? extends org.infinispan.objectfilter.Matcher> matcherImplClass)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    filterAndConvert(K key, V oldValue, org.infinispan.metadata.Metadata oldMetadata, V newValue, org.infinispan.metadata.Metadata newMetadata, org.infinispan.notifications.cachelistener.filter.EventType eventType)
     
    org.infinispan.objectfilter.Matcher
     
     
    protected org.infinispan.objectfilter.ObjectFilter
     
     
    protected void
    injectDependencies(org.infinispan.Cache<?,?> cache)
    Acquires a Matcher instance from the ComponentRegistry of the given Cache object.
     

    Methods inherited from class org.infinispan.notifications.cachelistener.filter.AbstractCacheEventFilterConverter

    accept, convert

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.infinispan.notifications.cachelistener.filter.CacheEventConverter

    convert, useRequestFormat

    Methods inherited from interface org.infinispan.notifications.cachelistener.filter.CacheEventFilter

    accept

    Methods inherited from interface org.infinispan.notifications.cachelistener.filter.CacheEventFilterConverter

    format
  • Field Details

    • queryString

      protected final String queryString
      The Ickle query to execute.
    • namedParameters

      protected final Map<String,Object> namedParameters
    • matcherImplClass

      protected Class<? extends org.infinispan.objectfilter.Matcher> matcherImplClass
      The implementation class of the Matcher component to lookup and use.
    • cacheName

      protected String cacheName
    • queryCache

      protected QueryCache queryCache
      Optional cache for query objects.
    • matcher

      protected org.infinispan.objectfilter.Matcher matcher
      The Matcher, acquired via dependency injection.
    • objectFilter

      protected org.infinispan.objectfilter.ObjectFilter objectFilter
      The ObjectFilter is created lazily.
  • Constructor Details

    • IckleContinuousQueryCacheEventFilterConverter

      public IckleContinuousQueryCacheEventFilterConverter(String queryString, Map<String,Object> namedParameters, Class<? extends org.infinispan.objectfilter.Matcher> matcherImplClass)
  • Method Details

    • getMatcher

      public org.infinispan.objectfilter.Matcher getMatcher()
    • getQueryString

      public String getQueryString()
    • getNamedParameters

      public Map<String,Object> getNamedParameters()
    • injectDependencies

      protected void injectDependencies(org.infinispan.Cache<?,?> cache)
      Acquires a Matcher instance from the ComponentRegistry of the given Cache object.
    • getObjectFilter

      protected org.infinispan.objectfilter.ObjectFilter getObjectFilter()
    • filterAndConvert

      public C filterAndConvert(K key, V oldValue, org.infinispan.metadata.Metadata oldMetadata, V newValue, org.infinispan.metadata.Metadata newMetadata, org.infinispan.notifications.cachelistener.filter.EventType eventType)
      Specified by:
      filterAndConvert in interface org.infinispan.notifications.cachelistener.filter.CacheEventFilterConverter<K,V,C>
    • toString

      public String toString()
      Overrides:
      toString in class Object