Class SimpleRedisListenerEndpoint
java.lang.Object
org.springframework.data.redis.config.AbstractRedisListenerEndpoint
org.springframework.data.redis.config.SimpleRedisListenerEndpoint
- All Implemented Interfaces:
Lifecycle, Phased, SmartLifecycle, RedisListenerEndpoint
A
RedisListenerEndpoint simply providing the MessageListener to invoke to process an incoming message
for this endpoint.- Since:
- 4.1
- Author:
- Mark Paluch
-
Field Summary
Fields inherited from interface SmartLifecycle
DEFAULT_PHASE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected @Nullable MessageListenerCreate theMessageListenerfor this endpoint.protected StringBuilderReturn a description for this endpoint.@Nullable MessageListenerReturn theMessageListenerto invoke when a message matching the endpoint is received.voidsetMessageListener(@Nullable MessageListener messageListener) Set theMessageListenerto invoke when a message matching the endpoint is received.Methods inherited from class AbstractRedisListenerEndpoint
getId, getTopic, isRunning, register, setId, setTopic, start, stop, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface SmartLifecycle
getPhase, isAutoStartup, isPauseable, stop
-
Constructor Details
-
SimpleRedisListenerEndpoint
public SimpleRedisListenerEndpoint() -
SimpleRedisListenerEndpoint
-
-
Method Details
-
setMessageListener
Set theMessageListenerto invoke when a message matching the endpoint is received. -
getMessageListener
Return theMessageListenerto invoke when a message matching the endpoint is received. -
createListener
Description copied from class:AbstractRedisListenerEndpointCreate theMessageListenerfor this endpoint.- Specified by:
createListenerin classAbstractRedisListenerEndpoint
-
getEndpointDescription
Description copied from class:AbstractRedisListenerEndpointReturn a description for this endpoint.Available to subclasses, for inclusion in their
toString()result.- Overrides:
getEndpointDescriptionin classAbstractRedisListenerEndpoint
-