org.springframework.data.gemfire.listener
Class ContinuousQueryDefinition

java.lang.Object
  extended by org.springframework.data.gemfire.listener.ContinuousQueryDefinition
All Implemented Interfaces:
InitializingBean

public class ContinuousQueryDefinition
extends Object
implements InitializingBean

Basic holder class for defining an CqQuery. Useful for configuring GemFire CqQuerys by mean of XML or using JavaBeans.

See Also:
InitializingBean

Constructor Summary
ContinuousQueryDefinition()
           
ContinuousQueryDefinition(String query, ContinuousQueryListener listener)
           
ContinuousQueryDefinition(String query, ContinuousQueryListener listener, boolean durable)
           
ContinuousQueryDefinition(String name, String query, ContinuousQueryListener listener)
           
ContinuousQueryDefinition(String name, String query, ContinuousQueryListener listener, boolean durable)
           
 
Method Summary
 void afterPropertiesSet()
           
 ContinuousQueryListener getListener()
          The CQ Listener receiving events and notifications with changes from the CQ.
 String getName()
          Gets the name for the CQ.
 String getQuery()
          Gets the query string that will be executed for the CQ.
 boolean isDurable()
          Determines whether the CQ is durable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContinuousQueryDefinition

public ContinuousQueryDefinition()

ContinuousQueryDefinition

public ContinuousQueryDefinition(String query,
                                 ContinuousQueryListener listener)

ContinuousQueryDefinition

public ContinuousQueryDefinition(String query,
                                 ContinuousQueryListener listener,
                                 boolean durable)

ContinuousQueryDefinition

public ContinuousQueryDefinition(String name,
                                 String query,
                                 ContinuousQueryListener listener)

ContinuousQueryDefinition

public ContinuousQueryDefinition(String name,
                                 String query,
                                 ContinuousQueryListener listener,
                                 boolean durable)
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
Specified by:
afterPropertiesSet in interface InitializingBean

isDurable

public boolean isDurable()
Determines whether the CQ is durable.

Returns:
a boolean indicating if the CQ is durable.

getName

public String getName()
Gets the name for the CQ.

Returns:
a String name for the CQ.

getQuery

public String getQuery()
Gets the query string that will be executed for the CQ.

Returns:
a String value with the query to be executed for the CQ.

getListener

public ContinuousQueryListener getListener()
The CQ Listener receiving events and notifications with changes from the CQ.

Returns:
the listener to be registered for the CQ.