Class PreparedRedisMessage


  • public class PreparedRedisMessage
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected @NotNull java.lang.String channel  
      protected @NotNull com.google.common.io.ByteArrayDataOutput data  
    • Constructor Summary

      Constructors 
      Constructor Description
      PreparedRedisMessage​(@NotNull java.lang.String channel, @NotNull com.google.common.io.ByteArrayDataOutput data)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String channel()  
      com.google.common.io.ByteArrayDataOutput data()  
      static PreparedRedisMessage of​(@NotNull java.lang.String channel, @NotNull com.google.common.io.ByteArrayDataOutput data)  
      static PreparedRedisMessage of​(@NotNull java.lang.String channel, @NotNull java.lang.Object... values)  
      static PreparedRedisMessage of​(@NotNull java.lang.String channel, @NotNull java.util.function.Consumer<com.google.common.io.ByteArrayDataOutput> data)  
      void publish()  
      void publishAsync()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • channel

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

        @NotNull
        protected final @NotNull com.google.common.io.ByteArrayDataOutput data
    • Constructor Detail

      • PreparedRedisMessage

        public PreparedRedisMessage​(@NotNull
                                    @NotNull java.lang.String channel,
                                    @NotNull
                                    @NotNull com.google.common.io.ByteArrayDataOutput data)
    • Method Detail

      • of

        public static PreparedRedisMessage of​(@NotNull
                                              @NotNull java.lang.String channel,
                                              @NotNull
                                              @NotNull com.google.common.io.ByteArrayDataOutput data)
      • of

        public static PreparedRedisMessage of​(@NotNull
                                              @NotNull java.lang.String channel,
                                              @NotNull
                                              @NotNull java.util.function.Consumer<com.google.common.io.ByteArrayDataOutput> data)
      • of

        public static PreparedRedisMessage of​(@NotNull
                                              @NotNull java.lang.String channel,
                                              @NotNull
                                              @NotNull java.lang.Object... values)
      • channel

        public java.lang.String channel()
      • data

        public com.google.common.io.ByteArrayDataOutput data()
      • publish

        public void publish()
      • publishAsync

        public void publishAsync()