Class MethodRedisListenerEndpoint
java.lang.Object
org.springframework.data.redis.config.AbstractRedisListenerEndpoint
org.springframework.data.redis.config.MethodRedisListenerEndpoint
- All Implemented Interfaces:
Lifecycle, Phased, SmartLifecycle, RedisListenerEndpoint
A
RedisListenerEndpoint providing the method invocation mechanism for a specific bean method.- Since:
- 4.1
- Author:
- Ilyass Bougati, Mark Paluch
- See Also:
-
Field Summary
Fields inherited from interface SmartLifecycle
DEFAULT_PHASE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate theMessageListenerfor this endpoint.getBean()protected StringBuilderReturn a description for this endpoint.@Nullable MethodvoidsetConsumes(@Nullable String consumes) Set the mime type the listener consumes.voidsetMessageHandlerMethodFactory(MessageHandlerMethodFactory messageHandlerMethodFactory) Set theMessageHandlerMethodFactoryto use to build theInvocableHandlerMethodresponsible to manage the invocation of this endpoint.voidsetMostSpecificMethod(@Nullable Method mostSpecificMethod) Set the most specific method known for this endpoint's declaration.toString()Methods inherited from class AbstractRedisListenerEndpoint
getId, getTopic, isRunning, register, setId, setTopic, start, stopMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface SmartLifecycle
getPhase, isAutoStartup, isPauseable, stop
-
Constructor Details
-
MethodRedisListenerEndpoint
-
-
Method Details
-
getBean
-
getMethod
-
setConsumes
Set the mime type the listener consumes. -
setMostSpecificMethod
Set the most specific method known for this endpoint's declaration.In case of a proxy, this will be the method on the target class (if annotated itself, that is, if not just annotated in an interface).
-
getMostSpecificMethod
-
setMessageHandlerMethodFactory
Set theMessageHandlerMethodFactoryto use to build theInvocableHandlerMethodresponsible to manage the invocation of this endpoint. -
createListener
Description copied from class:AbstractRedisListenerEndpointCreate theMessageListenerfor this endpoint.- Specified by:
createListenerin classAbstractRedisListenerEndpoint
-
getEndpointDescription
Return a description for this endpoint.Available to subclasses, for inclusion in their
toString()result.- Overrides:
getEndpointDescriptionin classAbstractRedisListenerEndpoint
-
toString
- Overrides:
toStringin classAbstractRedisListenerEndpoint
-