Annotation Interface MessageChannel
@Documented
@Retention(RUNTIME)
@Target({METHOD,PARAMETER})
@Bindable
@Inherited
@Executable(processOnStartup=true)
@MessageMapping
public @interface MessageChannel
Declares the Redis Pub/Sub channel or pattern to listen to, or binds the resolved channel on a method argument.
- Since:
- 7.0
- Author:
- Graeme Rocher
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionString[]Class<? extends RedisListenerExceptionHandler> String[]
-
Element Details
-
value
-
channels
-
patterns
-
exceptionHandler
Class<? extends RedisListenerExceptionHandler> exceptionHandler- Returns:
- The exception handler to use for this subscription
- Default:
io.micronaut.configuration.lettuce.pubsub.exception.RedisListenerExceptionHandler.class
-