Annotation Interface RedisPubSubClient


@Documented @Retention(RUNTIME) @Target(TYPE) @Introduction @Singleton public @interface RedisPubSubClient
Declarative client for publishing Redis Pub/Sub messages. Methods may return a synchronous value, void, a CompletionStage, or a reactive Publisher. For non-void return types, Micronaut first tries to convert the Redis subscriber count to the declared return type. If that is not possible and the declared type already matches the published body type, the original body is returned.
Since:
7.0
Author:
Graeme Rocher
  • Element Details

    • value

      @AliasFor(member="connection") String value
      Returns:
      The named Redis connection
      Default:
      ""
    • connection

      @AliasFor(member="value") String connection
      Returns:
      The named Redis connection
      Default:
      ""
    • executor

      String executor
      Returns:
      The executor used for asynchronous client methods
      Default:
      "blocking"