Class ContinuousQueryDefinition

java.lang.Object
org.springframework.data.gemfire.listener.ContinuousQueryDefinition
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean

public class ContinuousQueryDefinition extends Object implements org.springframework.beans.factory.InitializingBean
Class type for defining a CqQuery.
See Also:
  • InitializingBean
  • Constructor Details

  • Method Details

    • from

      public static ContinuousQueryDefinition from(Object delegate, Method method)
    • isDurable

      public boolean isDurable()
      Determines whether the CQ is durable.
      Returns:
      a boolean indicating if the CQ is durable.
    • isNamed

      public boolean isNamed()
      Determines whether the CQ was named.
      Returns:
      a boolean value indicating whether the CQ is named.
      See Also:
    • getListener

      public ContinuousQueryListener getListener()
      Returns a reference to the ContinuousQueryListener that will process/handle CQ event notifications.
      Returns:
      the CQ listener registered with the CQ to handle CQ events.
    • getName

      public String getName()
      Gets the name of the CQ.
      Returns:
      the name of the CQ.
    • getQuery

      public String getQuery()
      Gets the query executed by the CQ.
      Returns:
      the query executed by the CQ.
    • afterPropertiesSet

      public void afterPropertiesSet()
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
    • toCqAttributes

      public org.apache.geode.cache.query.CqAttributes toCqAttributes(Function<ContinuousQueryListener,org.apache.geode.cache.query.CqListener> listenerFunction)