public class ContinuousQueryMessageProducer extends ExpressionMessageProducerSupport implements org.springframework.data.gemfire.listener.ContinuousQueryListener
Region. This is much faster than
re-querying the cache manually.lifecycleCondition, lifecycleLockEXPRESSION_PARSER| Constructor and Description |
|---|
ContinuousQueryMessageProducer(org.springframework.data.gemfire.listener.ContinuousQueryListenerContainer queryListenerContainer,
java.lang.String query) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getComponentType()
Subclasses may implement this method to provide component type information.
|
void |
onEvent(org.apache.geode.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, setPayloadExpressionStringafterSingletonsInstantiated, buildErrorMessage, doStart, doStop, getErrorChannel, getErrorMessageAttributes, getMessagingTemplate, getOutputChannel, sendErrorMessageIfNecessary, sendMessage, setErrorChannel, setErrorChannelName, setErrorMessageStrategy, setOutputChannel, setOutputChannelName, setSendTimeout, setShouldTrackdestroy, doStop, getPhase, getRole, isAutoStartup, isRunning, setAutoStartup, setPhase, setRole, setTaskScheduler, start, stop, stopafterPropertiesSet, extractTypeIfPossible, getApplicationContext, getApplicationContextId, getBeanFactory, getChannelResolver, getComponentName, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetComponentNamepublic ContinuousQueryMessageProducer(org.springframework.data.gemfire.listener.ContinuousQueryListenerContainer queryListenerContainer,
java.lang.String query)
queryListenerContainer - a ContinuousQueryListenerContainerquery - 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)
public java.lang.String getComponentType()
IntegrationObjectSupportgetComponentType in interface NamedComponentgetComponentType in class IntegrationObjectSupportprotected void onInit()
IntegrationObjectSupportonInit in class ExpressionMessageProducerSupportpublic void onEvent(org.apache.geode.cache.query.CqEvent event)
onEvent in interface org.springframework.data.gemfire.listener.ContinuousQueryListener