public class GemfireMessageStore extends AbstractKeyValueMessageStore
MessageStore
and
MessageGroupStore
MessageGroupStore.MessageGroupCallback
MESSAGE_GROUP_KEY_PREFIX, MESSAGE_KEY_PREFIX
logger
Constructor and 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 a
GemfireMessageStore instance based on the provided |
Modifier and Type | Method and Description |
---|---|
protected Collection<?> |
doListKeys(String keyPattern) |
protected Object |
doRemove(Object id) |
protected void |
doRemoveAll(Collection<Object> ids) |
protected Object |
doRetrieve(Object id) |
protected void |
doStore(Object id,
Object objectToStore) |
protected void |
doStoreIfAbsent(Object id,
Object objectToStore) |
addMessage, addMessagesToGroup, completeGroup, doAddMessage, getGroupMetadata, getGroupPrefix, getMessage, getMessageCount, getMessageGroup, getMessageMetadata, getMessagePrefix, getMessagesForGroup, getOneMessageFromGroup, iterator, messageGroupSize, pollMessageFromGroup, removeMessage, removeMessageGroup, removeMessagesFromGroup, setLastReleasedSequenceNumberForGroup
addMessageToGroup, copy, expireMessageGroups, getMessageCountForAllMessageGroups, getMessageGroupCount, getMessageGroupFactory, isTimeoutOnIdle, registerMessageGroupExpiryCallback, removeMessagesFromGroup, setExpiryCallbacks, setLazyLoadMessageGroups, setTimeoutOnIdle
getRemoveBatchSize, setMessageGroupFactory, setRemoveBatchSize
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public GemfireMessageStore(org.apache.geode.cache.Region<Object,Object> messageStoreRegion)
messageStoreRegion
- The region.public GemfireMessageStore(org.apache.geode.cache.Region<Object,Object> messageStoreRegion, String prefix)
GemfireMessageStore
instance based on the providedmessageStoreRegion
- the region to use.prefix
- the key prefix to use, allowing the same region to be used for
multiple stores.protected Object doRetrieve(Object id)
doRetrieve
in class AbstractKeyValueMessageStore
protected void doStore(Object id, Object objectToStore)
doStore
in class AbstractKeyValueMessageStore
protected void doStoreIfAbsent(Object id, Object objectToStore)
doStoreIfAbsent
in class AbstractKeyValueMessageStore
protected Object doRemove(Object id)
doRemove
in class AbstractKeyValueMessageStore
protected void doRemoveAll(Collection<Object> ids)
doRemoveAll
in class AbstractKeyValueMessageStore
protected Collection<?> doListKeys(String keyPattern)
doListKeys
in class AbstractKeyValueMessageStore