Uses of Interface
org.springframework.data.redis.connection.MessageListener
Packages that use MessageListener
Package
Description
Namespace and configuration.
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.config
Methods in org.springframework.data.redis.config that return MessageListenerModifier and TypeMethodDescriptionprotected abstract @Nullable MessageListenerAbstractRedisListenerEndpoint.createListener()Create theMessageListenerfor this endpoint.protected @Nullable MessageListenerSimpleRedisListenerEndpoint.createListener()@Nullable MessageListenerSimpleRedisListenerEndpoint.getMessageListener()Return theMessageListenerto invoke when a message matching the endpoint is received.Methods in org.springframework.data.redis.config with parameters of type MessageListenerModifier and TypeMethodDescriptionvoidSimpleRedisListenerEndpoint.setMessageListener(@Nullable MessageListener messageListener) Set theMessageListenerto invoke when a message matching the endpoint is received.Constructors in org.springframework.data.redis.config with parameters of type MessageListener -
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(@NonNull MessageListener listener, byte @NonNull [] @NonNull ... patterns) Subscribes the connection to all channels matching the given patterns.voidStringRedisConnection.pSubscribe(@NonNull MessageListener listener, @NonNull String @NonNull ... 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(@NonNull MessageListener listener, byte @NonNull [] @NonNull ... channels) Subscribes the connection to the given channels.voidStringRedisConnection.subscribe(@NonNull MessageListener listener, @NonNull String @NonNull ... 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 TypeMethodDescriptionvoidJedisConnection.pSubscribe(@NonNull MessageListener listener, byte @NonNull [] @NonNull ... patterns) voidJedisConnection.subscribe(@NonNull MessageListener listener, byte @NonNull [] @NonNull ... 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 @Nullable [][] channels, byte @Nullable [][] 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 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 TypeClassDescriptionclassAn adapter that delegatesMessageListener.onMessage(Message, byte[])to a target method using Spring Messaging'sInvocableHandlerMethod.classMessage listener adapter that delegates the handling of messages to target listener methods via reflection and flexible message type conversion throughRedisSerializer.