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
  • Element Details

    • value

      String value
      Returns:
      The primary channel name
      Default:
      ""
    • channels

      String[] channels
      Returns:
      The explicit channels to subscribe to
      Default:
      {}
    • patterns

      String[] patterns
      Returns:
      The explicit patterns to subscribe to
      Default:
      {}
    • exceptionHandler

      Class<? extends RedisListenerExceptionHandler> exceptionHandler
      Returns:
      The exception handler to use for this subscription
      Default:
      io.micronaut.configuration.lettuce.pubsub.exception.RedisListenerExceptionHandler.class