Class RedisListenerEndpointRegistry
java.lang.Object
org.springframework.data.redis.config.RedisListenerEndpointRegistry
- All Implemented Interfaces:
Lifecycle, Phased, SmartLifecycle
Creates the necessary
RedisMessageListenerContainer instances for the registered endpoints.
Manages the lifecycle of the listener containers.
- Since:
- 4.1
- Author:
- Ilyass Bougati
-
Field Summary
Fields inherited from interface SmartLifecycle
DEFAULT_PHASE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidregisterListener(RedisListenerEndpoint endpoint, RedisMessageListenerContainer container) Register a newRedisListenerEndpointwith the givenRedisMessageListenerContainer.voidstart()voidstop()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface SmartLifecycle
getPhase, isAutoStartup, isPauseable, stop
-
Constructor Details
-
RedisListenerEndpointRegistry
public RedisListenerEndpointRegistry()
-
-
Method Details
-
registerListener
public void registerListener(RedisListenerEndpoint endpoint, RedisMessageListenerContainer container) Register a newRedisListenerEndpointwith the givenRedisMessageListenerContainer.- Parameters:
endpoint- the endpoint to register.container- the container to register the endpoint with.
-
start
-
stop
-
isRunning
-
getEndpoints
-