Class RedisMessageStore
java.lang.Object
org.springframework.integration.store.AbstractBatchingMessageGroupStore
org.springframework.integration.store.AbstractMessageGroupStore
org.springframework.integration.store.AbstractKeyValueMessageStore
org.springframework.integration.redis.store.RedisMessageStore
- All Implemented Interfaces:
- Iterable<MessageGroup>,- Aware,- BeanClassLoaderAware,- BasicMessageGroupStore,- MessageGroupStore,- MessageStore
Redis implementation of the key/value style
 
MessageStore and
 MessageGroupStore- Since:
- 2.1
- Author:
- Oleg Zhurakousky, Gary Russell, Artem Bilan
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.springframework.integration.store.MessageGroupStoreMessageGroupStore.MessageGroupCallback
- 
Field SummaryFields inherited from class org.springframework.integration.store.AbstractKeyValueMessageStoreMESSAGE_GROUP_KEY_PREFIX, MESSAGE_KEY_PREFIXFields inherited from class org.springframework.integration.store.AbstractMessageGroupStorelogger
- 
Constructor SummaryConstructorsConstructorDescriptionRedisMessageStore(RedisConnectionFactory connectionFactory) ConstructRedisMessageStorebased on the providedRedisConnectionFactoryand default empty prefix.RedisMessageStore(RedisConnectionFactory connectionFactory, String prefix) ConstructRedisMessageStorebased on the providedRedisConnectionFactoryand prefix.
- 
Method SummaryModifier and TypeMethodDescriptionprotected Collection<?>doListKeys(String keyPattern) protected Objectprotected voiddoRemoveAll(Collection<Object> ids) protected ObjectdoRetrieve(Object id) protected voidprotected voiddoStoreIfAbsent(Object id, Object objectToStore) voidsetBeanClassLoader(ClassLoader classLoader) voidsetValueSerializer(RedisSerializer<?> valueSerializer) Methods inherited from class org.springframework.integration.store.AbstractKeyValueMessageStoreaddMessage, addMessagesToGroup, completeGroup, doAddMessage, doAddMessage, getGroupMetadata, getGroupPrefix, getMessage, getMessageCount, getMessageFromGroup, getMessageGroup, getMessageMetadata, getMessagePrefix, getMessagesForGroup, getOneMessageFromGroup, iterator, messageGroupSize, pollMessageFromGroup, removeMessage, removeMessageFromGroupById, removeMessageGroup, removeMessagesFromGroup, setGroupCondition, setLastReleasedSequenceNumberForGroup, streamMessagesForGroupMethods inherited from class org.springframework.integration.store.AbstractMessageGroupStoreaddMessageToGroup, copy, expireMessageGroups, getMessageCountForAllMessageGroups, getMessageGroupCount, getMessageGroupFactory, isTimeoutOnIdle, registerMessageGroupExpiryCallback, removeMessagesFromGroup, setExpiryCallbacks, setLazyLoadMessageGroups, setTimeoutOnIdleMethods inherited from class org.springframework.integration.store.AbstractBatchingMessageGroupStoregetRemoveBatchSize, setMessageGroupFactory, setRemoveBatchSizeMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.IterableforEach, spliterator
- 
Constructor Details- 
RedisMessageStoreConstructRedisMessageStorebased on the providedRedisConnectionFactoryand default empty prefix.- Parameters:
- connectionFactory- the RedisConnectionFactory to use
 
- 
RedisMessageStoreConstructRedisMessageStorebased on the providedRedisConnectionFactoryand prefix.- Parameters:
- connectionFactory- the RedisConnectionFactory to use
- prefix- the key prefix to use, allowing the same broker to be used for multiple stores.
- Since:
- 4.3.12
- See Also:
 
 
- 
- 
Method Details- 
setBeanClassLoader- Specified by:
- setBeanClassLoaderin interface- BeanClassLoaderAware
 
- 
setValueSerializer
- 
doRetrieve- Specified by:
- doRetrievein class- AbstractKeyValueMessageStore
 
- 
doStore- Specified by:
- doStorein class- AbstractKeyValueMessageStore
 
- 
doStoreIfAbsent- Specified by:
- doStoreIfAbsentin class- AbstractKeyValueMessageStore
 
- 
doRemove- Specified by:
- doRemovein class- AbstractKeyValueMessageStore
 
- 
doRemoveAll- Specified by:
- doRemoveAllin class- AbstractKeyValueMessageStore
 
- 
doListKeys- Specified by:
- doListKeysin class- AbstractKeyValueMessageStore
 
 
-