public class RedisMessageStore extends AbstractKeyValueMessageStore implements BeanClassLoaderAware
MessageStore and
MessageGroupStoreMessageGroupStore.MessageGroupCallbackCREATED_DATE, MESSAGE_GROUP_KEY_PREFIX, MESSAGE_KEY_PREFIXlogger| Constructor and Description |
|---|
RedisMessageStore(RedisConnectionFactory connectionFactory)
Construct
RedisMessageStore based on the provided
RedisConnectionFactory and default empty prefix. |
RedisMessageStore(RedisConnectionFactory connectionFactory,
String prefix)
Construct
RedisMessageStore based on the provided
RedisConnectionFactory and prefix. |
| 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) |
void |
setBeanClassLoader(ClassLoader classLoader) |
void |
setValueSerializer(RedisSerializer<?> valueSerializer) |
addMessage, addMessagesToGroup, completeGroup, doAddMessage, getGroupMetadata, getGroupPrefix, getMessage, getMessageCount, getMessageGroup, getMessageMetadata, getMessagePrefix, getMessagesForGroup, getOneMessageFromGroup, iterator, messageGroupSize, pollMessageFromGroup, removeMessage, removeMessageGroup, removeMessagesFromGroup, setLastReleasedSequenceNumberForGroupaddMessageToGroup, copy, expireMessageGroups, getMessageCountForAllMessageGroups, getMessageGroupCount, getMessageGroupFactory, isTimeoutOnIdle, registerMessageGroupExpiryCallback, removeMessagesFromGroup, setExpiryCallbacks, setLazyLoadMessageGroups, setTimeoutOnIdlegetRemoveBatchSize, setMessageGroupFactory, setRemoveBatchSizeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic RedisMessageStore(RedisConnectionFactory connectionFactory)
RedisMessageStore based on the provided
RedisConnectionFactory and default empty prefix.connectionFactory - the RedisConnectionFactory to usepublic RedisMessageStore(RedisConnectionFactory connectionFactory, String prefix)
RedisMessageStore based on the provided
RedisConnectionFactory and prefix.connectionFactory - the RedisConnectionFactory to useprefix - the key prefix to use, allowing the same broker to be used for
multiple stores.AbstractKeyValueMessageStore.AbstractKeyValueMessageStore(String)public void setBeanClassLoader(ClassLoader classLoader)
setBeanClassLoader in interface BeanClassLoaderAwarepublic void setValueSerializer(RedisSerializer<?> valueSerializer)
protected Object doRetrieve(Object id)
doRetrieve in class AbstractKeyValueMessageStoreprotected void doStore(Object id, Object objectToStore)
doStore in class AbstractKeyValueMessageStoreprotected void doStoreIfAbsent(Object id, Object objectToStore)
doStoreIfAbsent in class AbstractKeyValueMessageStoreprotected Object doRemove(Object id)
doRemove in class AbstractKeyValueMessageStoreprotected void doRemoveAll(Collection<Object> ids)
doRemoveAll in class AbstractKeyValueMessageStoreprotected Collection<?> doListKeys(String keyPattern)
doListKeys in class AbstractKeyValueMessageStore