public class GemfireMessageStore extends AbstractKeyValueMessageStore implements org.springframework.beans.factory.InitializingBean
MessageStore
and
MessageGroupStore
MessageGroupStore.MessageGroupCallback
CREATED_DATE, MESSAGE_GROUP_KEY_PREFIX, MESSAGE_KEY_PREFIX
logger
Constructor and Description |
---|
GemfireMessageStore(com.gemstone.gemfire.cache.Cache cache)
Provides a cache reference used to create a message store region named
'messageStoreRegion'
|
GemfireMessageStore(com.gemstone.gemfire.cache.Region<java.lang.Object,java.lang.Object> messageStoreRegion)
Provides the region to be used for the message store.
|
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
protected java.util.Collection<?> |
doListKeys(java.lang.String keyPattern) |
protected java.lang.Object |
doRemove(java.lang.Object id) |
protected java.lang.Object |
doRetrieve(java.lang.Object id) |
protected void |
doStore(java.lang.Object id,
java.lang.Object objectToStore) |
void |
setIgnoreJta(boolean ignoreJta) |
addMessage, addMessageToGroup, completeGroup, getMessage, getMessageCount, getMessageGroup, iterator, messageGroupSize, pollMessageFromGroup, removeMessage, removeMessageFromGroup, removeMessageGroup, setLastReleasedSequenceNumberForGroup
expireMessageGroups, getMessageCountForAllMessageGroups, getMessageGroupCount, isTimeoutOnIdle, registerMessageGroupExpiryCallback, setExpiryCallbacks, setTimeoutOnIdle
public GemfireMessageStore(com.gemstone.gemfire.cache.Region<java.lang.Object,java.lang.Object> messageStoreRegion)
messageStoreRegion
- the regionpublic GemfireMessageStore(com.gemstone.gemfire.cache.Cache cache)
cache
- public void setIgnoreJta(boolean ignoreJta)
public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
protected java.lang.Object doRetrieve(java.lang.Object id)
doRetrieve
in class AbstractKeyValueMessageStore
protected void doStore(java.lang.Object id, java.lang.Object objectToStore)
doStore
in class AbstractKeyValueMessageStore
protected java.lang.Object doRemove(java.lang.Object id)
doRemove
in class AbstractKeyValueMessageStore
protected java.util.Collection<?> doListKeys(java.lang.String keyPattern)
doListKeys
in class AbstractKeyValueMessageStore