public class ContinuousQueryMessageProducer extends ExpressionMessageProducerSupport implements org.springframework.data.gemfire.listener.ContinuousQueryListener
Region
. This is much faster than
re-querying the cache manually.Constructor and Description |
---|
ContinuousQueryMessageProducer(org.springframework.data.gemfire.listener.ContinuousQueryListenerContainer queryListenerContainer,
java.lang.String query) |
Modifier and Type | Method and Description |
---|---|
void |
onEvent(com.gemstone.gemfire.cache.query.CqEvent event) |
protected void |
onInit()
Subclasses may implement this for initialization logic.
|
void |
setDurable(boolean durable) |
void |
setQueryName(java.lang.String queryName) |
void |
setSupportedEventTypes(CqEventType... eventTypes) |
evaluatePayloadExpression, setIntegrationEvaluationContext, setPayloadExpression
doStart, doStop, sendMessage, setErrorChannel, setOutputChannel, setSendTimeout, setShouldTrack
getPhase, isAutoStartup, isRunning, setAutoStartup, setPhase, setTaskScheduler, start, stop, stop
afterPropertiesSet, getApplicationContextId, getBeanFactory, getComponentName, getComponentType, getConversionService, getIntegrationProperties, getIntegrationProperty, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setConversionService, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getComponentName, getComponentType
public ContinuousQueryMessageProducer(org.springframework.data.gemfire.listener.ContinuousQueryListenerContainer queryListenerContainer, java.lang.String query)
queryListenerContainer
- a ContinuousQueryListenerContainer
query
- the query stringpublic void setQueryName(java.lang.String queryName)
queryName
- optional query namepublic void setDurable(boolean durable)
durable
- true if the query is a durable subscriptionpublic void setSupportedEventTypes(CqEventType... eventTypes)
protected void onInit()
IntegrationObjectSupport
onInit
in class ExpressionMessageProducerSupport
public void onEvent(com.gemstone.gemfire.cache.query.CqEvent event)
onEvent
in interface org.springframework.data.gemfire.listener.ContinuousQueryListener