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 TypeMethodDescriptionvoidDefaultStringRedisConnection.pSubscribe(MessageListener listener, byte[]... patterns) voidDefaultStringRedisConnection.pSubscribe(MessageListener listener, String... patterns) voidRedisPubSubCommands.pSubscribe(MessageListener listener, byte[]... patterns) Subscribes the connection to all channels matching the given patterns.voidStringRedisConnection.pSubscribe(MessageListener listener, String... patterns) Subscribes the connection to all channels matching the given patterns.voidDefaultStringRedisConnection.subscribe(MessageListener listener, byte[]... channels) voidDefaultStringRedisConnection.subscribe(MessageListener listener, String... channels) voidRedisPubSubCommands.subscribe(MessageListener listener, byte[]... channels) Subscribes the connection to the given channels.voidStringRedisConnection.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 TypeMethodDescriptionvoidJedisClusterConnection.pSubscribe(MessageListener listener, byte[]... patterns) voidJedisConnection.pSubscribe(MessageListener listener, byte[]... patterns) voidJedisClusterConnection.subscribe(MessageListener listener, byte[]... channels) voidJedisConnection.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 LettuceSubscriptionLettuceConnection.doCreateSubscription(MessageListener listener, io.lettuce.core.pubsub.StatefulRedisPubSubConnection<byte[], byte[]> connection, LettuceConnectionProvider connectionProvider) Customization hook to create aLettuceSubscription.voidLettuceConnection.pSubscribe(MessageListener listener, byte[]... patterns) voidLettuceConnection.subscribe(MessageListener listener, byte[]... channels) Constructors in org.springframework.data.redis.connection.lettuce with parameters of type MessageListenerModifierConstructorDescriptionprotectedLettuceSubscription(MessageListener listener, io.lettuce.core.pubsub.StatefulRedisPubSubConnection<byte[], byte[]> pubsubConnection, LettuceConnectionProvider connectionProvider) Creates a newLettuceSubscriptiongivenMessageListener,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 MessageListenerModifierConstructorDescriptionprotectedAbstractSubscription(MessageListener listener) protectedAbstractSubscription(MessageListener listener, byte[][] channels, byte[][] patterns) Constructs a newAbstractSubscriptioninstance. -
Uses of MessageListener in org.springframework.data.redis.listener
Classes in org.springframework.data.redis.listener that implement MessageListenerModifier and TypeClassDescriptionclassMessageListenerpublishingRedisKeyExpiredEvents viaApplicationEventPublisherby listening to Redis keyspace notifications for key expirations.classBaseMessageListenerimplementation for listening to Redis keyspace notifications.Methods in org.springframework.data.redis.listener with parameters of type MessageListenerModifier and TypeMethodDescriptionvoidRedisMessageListenerContainer.addMessageListener(MessageListener listener, Collection<? extends Topic> topics) Adds a message listener to the (potentially running) container.voidRedisMessageListenerContainer.addMessageListener(MessageListener listener, Topic topic) Adds a message listener to the (potentially running) container.protected voidRedisMessageListenerContainer.processMessage(MessageListener listener, Message message, byte[] source) Process a message received from the provider.voidRedisMessageListenerContainer.removeMessageListener(MessageListener listener) Removes the given message listener completely (from all topics).voidRedisMessageListenerContainer.removeMessageListener(MessageListener listener, Collection<? extends Topic> topics) Removes a message listener from the given topics.voidRedisMessageListenerContainer.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 TypeMethodDescriptionvoidRedisMessageListenerContainer.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 TypeClassDescriptionclassMessage listener adapter that delegates the handling of messages to target listener methods via reflection, with flexible message type conversion.