Uses of Interface
org.springframework.data.redis.connection.MessageListener
Packages that use MessageListener
Package
Description
Connection package providing low-level abstractions for interacting with the various Redis 'drivers'/libraries.
Connection package for Jedis library.
Connection package for Lettuce Redis client.
Internal utility package for encoding/decoding Strings to byte[] (using Base64) library.
Base package for Redis message listener / pubsub container facility
Message listener adapter package.
-
Uses of MessageListener in org.springframework.data.redis.connection
Methods in org.springframework.data.redis.connection that return MessageListenerModifier and TypeMethodDescriptionSubscription.getListener()
Returns the listener used for this subscription.Methods in org.springframework.data.redis.connection with parameters of type MessageListenerModifier and TypeMethodDescriptionvoid
DefaultStringRedisConnection.pSubscribe
(MessageListener listener, byte[]... patterns) void
DefaultStringRedisConnection.pSubscribe
(MessageListener listener, String... patterns) void
RedisPubSubCommands.pSubscribe
(MessageListener listener, byte[]... patterns) Subscribes the connection to all channels matching the given patterns.void
StringRedisConnection.pSubscribe
(MessageListener listener, String... patterns) Subscribes the connection to all channels matching the given patterns.void
DefaultStringRedisConnection.subscribe
(MessageListener listener, byte[]... channels) void
DefaultStringRedisConnection.subscribe
(MessageListener listener, String... channels) void
RedisPubSubCommands.subscribe
(MessageListener listener, byte[]... channels) Subscribes the connection to the given channels.void
StringRedisConnection.subscribe
(MessageListener listener, String... channels) Subscribes the connection to the given channels. -
Uses of MessageListener in org.springframework.data.redis.connection.jedis
Methods in org.springframework.data.redis.connection.jedis with parameters of type MessageListenerModifier and TypeMethodDescriptionvoid
JedisClusterConnection.pSubscribe
(MessageListener listener, byte[]... patterns) void
JedisConnection.pSubscribe
(MessageListener listener, byte[]... patterns) void
JedisClusterConnection.subscribe
(MessageListener listener, byte[]... channels) void
JedisConnection.subscribe
(MessageListener listener, byte[]... channels) -
Uses of MessageListener in org.springframework.data.redis.connection.lettuce
Methods in org.springframework.data.redis.connection.lettuce with parameters of type MessageListenerModifier and TypeMethodDescriptionprotected LettuceSubscription
LettuceConnection.doCreateSubscription
(MessageListener listener, io.lettuce.core.pubsub.StatefulRedisPubSubConnection<byte[], byte[]> connection, LettuceConnectionProvider connectionProvider) Customization hook to create aLettuceSubscription
.void
LettuceConnection.pSubscribe
(MessageListener listener, byte[]... patterns) void
LettuceConnection.subscribe
(MessageListener listener, byte[]... channels) Constructors in org.springframework.data.redis.connection.lettuce with parameters of type MessageListenerModifierConstructorDescriptionprotected
LettuceSubscription
(MessageListener listener, io.lettuce.core.pubsub.StatefulRedisPubSubConnection<byte[], byte[]> pubsubConnection, LettuceConnectionProvider connectionProvider) Creates a newLettuceSubscription
givenMessageListener
,StatefulRedisPubSubConnection
, andLettuceConnectionProvider
. -
Uses of MessageListener in org.springframework.data.redis.connection.util
Methods in org.springframework.data.redis.connection.util that return MessageListenerConstructors in org.springframework.data.redis.connection.util with parameters of type MessageListenerModifierConstructorDescriptionprotected
AbstractSubscription
(MessageListener listener) protected
AbstractSubscription
(MessageListener listener, byte[][] channels, byte[][] patterns) Constructs a newAbstractSubscription
instance. -
Uses of MessageListener in org.springframework.data.redis.listener
Classes in org.springframework.data.redis.listener that implement MessageListenerModifier and TypeClassDescriptionclass
MessageListener
publishingRedisKeyExpiredEvent
s viaApplicationEventPublisher
by listening to Redis keyspace notifications for key expirations.class
BaseMessageListener
implementation for listening to Redis keyspace notifications.Methods in org.springframework.data.redis.listener with parameters of type MessageListenerModifier and TypeMethodDescriptionvoid
RedisMessageListenerContainer.addMessageListener
(MessageListener listener, Collection<? extends Topic> topics) Adds a message listener to the (potentially running) container.void
RedisMessageListenerContainer.addMessageListener
(MessageListener listener, Topic topic) Adds a message listener to the (potentially running) container.protected void
RedisMessageListenerContainer.processMessage
(MessageListener listener, Message message, byte[] source) Process a message received from the provider.void
RedisMessageListenerContainer.removeMessageListener
(MessageListener listener) Removes the given message listener completely (from all topics).void
RedisMessageListenerContainer.removeMessageListener
(MessageListener listener, Collection<? extends Topic> topics) Removes a message listener from the given topics.void
RedisMessageListenerContainer.removeMessageListener
(MessageListener listener, Topic topic) Removes a message listener from the given topic.Method parameters in org.springframework.data.redis.listener with type arguments of type MessageListenerModifier and TypeMethodDescriptionvoid
RedisMessageListenerContainer.setMessageListeners
(Map<? extends MessageListener, Collection<? extends Topic>> listeners) Attaches the given listeners (and their topics) to the container. -
Uses of MessageListener in org.springframework.data.redis.listener.adapter
Classes in org.springframework.data.redis.listener.adapter that implement MessageListenerModifier and TypeClassDescriptionclass
Message listener adapter that delegates the handling of messages to target listener methods via reflection, with flexible message type conversion.