public class ContinuousQueryMessageProducer extends ExpressionMessageProducerSupport implements ContinuousQueryListener
Region
. This is much faster than
re-querying the cache manually.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(com.gemstone.gemfire.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
doStart, doStop, sendMessage, setErrorChannel, setOutputChannel, setSendTimeout, setShouldTrack
getPhase, isAutoStartup, isRunning, setAutoStartup, setPhase, setTaskScheduler, start, stop, stop
afterPropertiesSet, getApplicationContextId, getBeanFactory, getComponentName, getConversionService, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setConversionService, setMessageBuilderFactory, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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(com.gemstone.gemfire.cache.query.CqEvent event)
onEvent
in interface ContinuousQueryListener