public class CacheWritingMessageHandler extends AbstractMessageHandler
MessageHandler implementation that writes to a GemFire Region. The
Message's payload must be an instance of Map or cacheEntryExpressions
must be provided.EXPRESSION_PARSER, logger| Constructor and Description |
|---|
CacheWritingMessageHandler(com.gemstone.gemfire.cache.Region region) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getComponentType()
Subclasses may implement this method to provide component type information.
|
protected void |
handleMessageInternal(org.springframework.messaging.Message<?> message) |
protected void |
onInit()
Subclasses may implement this for initialization logic.
|
void |
setCacheEntries(java.util.Map<java.lang.String,java.lang.String> cacheEntries) |
void |
setCacheEntryExpressions(java.util.Map<org.springframework.expression.Expression,org.springframework.expression.Expression> cacheEntryExpressions) |
configureMetrics, getActiveCount, getActiveCountLong, getDuration, getErrorCount, getErrorCountLong, getHandleCount, getHandleCountLong, getManagedName, getManagedType, getMaxDuration, getMeanDuration, getMinDuration, getOrder, getStandardDeviationDuration, handleMessage, isCountsEnabled, isLoggingEnabled, isStatsEnabled, reset, setCountsEnabled, setLoggingEnabled, setManagedName, setManagedType, setOrder, setShouldTrack, setStatsEnabledafterPropertiesSet, extractTypeIfPossible, getApplicationContext, getApplicationContextId, getBeanFactory, getChannelResolver, getComponentName, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetComponentNamepublic CacheWritingMessageHandler(com.gemstone.gemfire.cache.Region region)
public java.lang.String getComponentType()
IntegrationObjectSupportgetComponentType in interface NamedComponentgetComponentType in class AbstractMessageHandlerprotected void onInit()
throws java.lang.Exception
IntegrationObjectSupportonInit in class AbstractMessageHandlerjava.lang.Exception - Any exception.protected void handleMessageInternal(org.springframework.messaging.Message<?> message)
handleMessageInternal in class AbstractMessageHandlerpublic void setCacheEntries(java.util.Map<java.lang.String,java.lang.String> cacheEntries)
public void setCacheEntryExpressions(java.util.Map<org.springframework.expression.Expression,org.springframework.expression.Expression> cacheEntryExpressions)