Class RedisChannel

    • Field Detail

      • channel

        @NotNull
        protected final @NotNull java.lang.String channel
      • filter

        @Nullable
        protected final @Nullable java.util.function.Predicate<RedisMessage> filter
    • Constructor Detail

      • RedisChannel

        public RedisChannel​(@NotNull
                            @NotNull java.lang.String channel,
                            @Nullable
                            @Nullable java.util.function.Predicate<RedisMessage> filter,
                            @Nullable
                            @Nullable java.util.function.Function<RedisMessage,​PreparedRedisMessage> handler)
    • Method Detail

      • of

        public static RedisChannel of​(@NotNull
                                      @NotNull java.lang.String channel)
      • of

        public static RedisChannel of​(@NotNull
                                      @NotNull java.lang.String... channelPart)
      • of

        public static RedisChannel of​(@NotNull
                                      @NotNull java.lang.String channel,
                                      @NotNull
                                      @NotNull java.util.function.Consumer<RedisMessage> handler)
      • getChannel

        @NotNull
        public @NotNull java.lang.String getChannel()
      • shouldRegister

        public boolean shouldRegister()
      • publishAsync

        public io.lettuce.core.RedisFuture<java.lang.Long> publishAsync​(@NotNull
                                                                        @NotNull com.google.common.io.ByteArrayDataOutput data)
      • publishAsync

        public io.lettuce.core.RedisFuture<java.lang.Long> publishAsync​(@NotNull
                                                                        @NotNull java.util.function.Consumer<com.google.common.io.ByteArrayDataOutput> data)
      • publishAsync

        public io.lettuce.core.RedisFuture<java.lang.Long> publishAsync​(java.lang.Object... values)
      • publish

        public long publish​(@NotNull
                            @NotNull java.lang.Object... values)
      • publish

        public long publish​(@NotNull
                            @NotNull com.google.common.io.ByteArrayDataOutput data)
      • publish

        public long publish​(@NotNull
                            @NotNull java.util.function.Consumer<com.google.common.io.ByteArrayDataOutput> data)