Class GemfireMessageStore
java.lang.Object
org.springframework.integration.store.AbstractBatchingMessageGroupStore
org.springframework.integration.store.AbstractMessageGroupStore
org.springframework.integration.store.AbstractKeyValueMessageStore
org.springframework.integration.gemfire.store.GemfireMessageStore
- All Implemented Interfaces:
Iterable<MessageGroup>,BasicMessageGroupStore,MessageGroupStore,MessageStore
public class GemfireMessageStore extends AbstractKeyValueMessageStore
Gemfire implementation of the key/value style
MessageStore and
MessageGroupStore.- Since:
- 2.1
- Author:
- Mark Fisher, Oleg Zhurakousky, David Turanski, Artem Bilan, Gary Russell
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.integration.store.MessageGroupStore
MessageGroupStore.MessageGroupCallback -
Field Summary
Fields inherited from class org.springframework.integration.store.AbstractKeyValueMessageStore
MESSAGE_GROUP_KEY_PREFIX, MESSAGE_KEY_PREFIX -
Constructor Summary
Constructors Constructor Description GemfireMessageStore(org.apache.geode.cache.Region<Object,Object> messageStoreRegion)Provides the region to be used for the message store.GemfireMessageStore(org.apache.geode.cache.Region<Object,Object> messageStoreRegion, String prefix)Construct aGemfireMessageStoreinstance based on the provided. -
Method Summary
Modifier and Type Method Description protected Collection<?>doListKeys(String keyPattern)protected ObjectdoRemove(Object id)protected voiddoRemoveAll(Collection<Object> ids)protected ObjectdoRetrieve(Object id)protected voiddoStore(Object id, Object objectToStore)protected voiddoStoreIfAbsent(Object id, Object objectToStore)Methods inherited from class org.springframework.integration.store.AbstractKeyValueMessageStore
addMessage, addMessagesToGroup, completeGroup, doAddMessage, getGroupMetadata, getGroupPrefix, getMessage, getMessageCount, getMessageGroup, getMessageMetadata, getMessagePrefix, getMessagesForGroup, getOneMessageFromGroup, iterator, messageGroupSize, pollMessageFromGroup, removeMessage, removeMessageGroup, removeMessagesFromGroup, setGroupCondition, setLastReleasedSequenceNumberForGroup, streamMessagesForGroupMethods inherited from class org.springframework.integration.store.AbstractMessageGroupStore
addMessageToGroup, copy, expireMessageGroups, getMessageCountForAllMessageGroups, getMessageGroupCount, getMessageGroupFactory, isTimeoutOnIdle, registerMessageGroupExpiryCallback, removeMessagesFromGroup, setExpiryCallbacks, setLazyLoadMessageGroups, setTimeoutOnIdleMethods inherited from class org.springframework.integration.store.AbstractBatchingMessageGroupStore
getRemoveBatchSize, setMessageGroupFactory, setRemoveBatchSize
-
Constructor Details
-
GemfireMessageStore
Provides the region to be used for the message store. This is useful when using a configured region. This is also required if using a client region on a remote cache server.- Parameters:
messageStoreRegion- The region.
-
GemfireMessageStore
public GemfireMessageStore(org.apache.geode.cache.Region<Object,Object> messageStoreRegion, String prefix)Construct aGemfireMessageStoreinstance based on the provided.- Parameters:
messageStoreRegion- the region to use.prefix- the key prefix to use, allowing the same region to be used for multiple stores.- Since:
- 4.3.12
-
-
Method Details
-
doRetrieve
- Specified by:
doRetrievein classAbstractKeyValueMessageStore
-
doStore
- Specified by:
doStorein classAbstractKeyValueMessageStore
-
doStoreIfAbsent
- Specified by:
doStoreIfAbsentin classAbstractKeyValueMessageStore
-
doRemove
- Specified by:
doRemovein classAbstractKeyValueMessageStore
-
doRemoveAll
- Specified by:
doRemoveAllin classAbstractKeyValueMessageStore
-
doListKeys
- Specified by:
doListKeysin classAbstractKeyValueMessageStore
-