public class ContinuousQueryMessageProducer extends ExpressionMessageProducerSupport implements ContinuousQueryListener
Region
. This is much faster than
re-querying the cache manually.lifecycleCondition, lifecycleLock
EXPRESSION_PARSER
DEFAULT_PHASE
Constructor and Description |
---|
ContinuousQueryMessageProducer(ContinuousQueryListenerContainer queryListenerContainer,
String query) |
Modifier and Type | Method and Description |
---|---|
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(String queryName) |
void |
setSupportedEventTypes(CqEventType... eventTypes) |
evaluatePayloadExpression, setIntegrationEvaluationContext, setPayloadExpression, setPayloadExpressionString
afterSingletonsInstantiated, buildErrorMessage, doStart, doStop, getErrorChannel, getErrorMessageAttributes, getIntegrationPatternType, getMessagingTemplate, getOutputChannel, sendErrorMessageIfNecessary, sendMessage, setErrorChannel, setErrorChannelName, setErrorMessageStrategy, setOutputChannel, setOutputChannelName, setSendTimeout, setShouldTrack, subscribeToPublisher
destroy, doStop, getPhase, getRole, isActive, isAutoStartup, isRunning, setAutoStartup, setPhase, setRole, start, stop, stop
afterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentName, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getBeanName, getComponentName
public ContinuousQueryMessageProducer(ContinuousQueryListenerContainer queryListenerContainer, String query)
queryListenerContainer
- a ContinuousQueryListenerContainer
query
- the query stringpublic void setQueryName(String queryName)
queryName
- optional query namepublic void setDurable(boolean durable)
durable
- true if the query is a durable subscriptionpublic void setSupportedEventTypes(CqEventType... eventTypes)
public 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 ContinuousQueryListener