public class ContinuousQueryMessageProducer extends ExpressionMessageProducerSupport implements org.springframework.data.gemfire.listener.ContinuousQueryListener
Region
. This is much faster than
re-querying the cache manually.lifecycleCondition, lifecycleLock
EXPRESSION_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, setPayloadExpressionString
afterSingletonsInstantiated, buildErrorMessage, doStart, doStop, getErrorChannel, getErrorMessageAttributes, getMessagingTemplate, getOutputChannel, sendErrorMessageIfNecessary, sendMessage, setErrorChannel, setErrorChannelName, setErrorMessageStrategy, setOutputChannel, setOutputChannelName, setSendTimeout, setShouldTrack
doStop, getPhase, isAutoStartup, isRunning, setAutoStartup, setPhase, setTaskScheduler, start, stop, stop
afterPropertiesSet, extractTypeIfPossible, getApplicationContext, getApplicationContextId, getBeanFactory, getChannelResolver, getComponentName, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getComponentName
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)
public java.lang.String getComponentType()
IntegrationObjectSupport
getComponentType
in interface NamedComponent
getComponentType
in class IntegrationObjectSupport
protected void onInit()
IntegrationObjectSupport
onInit
in class ExpressionMessageProducerSupport
public void onEvent(org.apache.geode.cache.query.CqEvent event)
onEvent
in interface org.springframework.data.gemfire.listener.ContinuousQueryListener