Class StreamReadOptions.StreamReadOptionsBuilder<C extends StreamReadOptions,​B extends StreamReadOptions.StreamReadOptionsBuilder<C,​B>>

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      B block​(java.lang.Long block)
      If set, the request will be blocked for the set amount of milliseconds or until the server has the required number of entries.
      abstract C build()  
      B count​(java.lang.Long count)
      The maximal number of elements requested.
      protected abstract B self()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • StreamReadOptionsBuilder

        public StreamReadOptionsBuilder()
    • Method Detail

      • block

        public B block​(java.lang.Long block)
        If set, the request will be blocked for the set amount of milliseconds or until the server has the required number of entries. Equivalent to BLOCK in the Valkey API.
        Returns:
        this.
      • count

        public B count​(java.lang.Long count)
        The maximal number of elements requested. Equivalent to COUNT in the Valkey API.
        Returns:
        this.
      • self

        protected abstract B self()
      • build

        public abstract C build()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object