Package glide.api.models.commands.stream
Class StreamReadOptions.StreamReadOptionsBuilder<C extends StreamReadOptions,B extends StreamReadOptions.StreamReadOptionsBuilder<C,B>>
- java.lang.Object
-
- glide.api.models.commands.stream.StreamReadOptions.StreamReadOptionsBuilder<C,B>
-
- Direct Known Subclasses:
StreamReadGroupOptions.StreamReadGroupOptionsBuilder
- Enclosing class:
- StreamReadOptions
public abstract static class StreamReadOptions.StreamReadOptionsBuilder<C extends StreamReadOptions,B extends StreamReadOptions.StreamReadOptionsBuilder<C,B>> extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description StreamReadOptionsBuilder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Bblock(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 Cbuild()Bcount(java.lang.Long count)The maximal number of elements requested.protected abstract Bself()java.lang.StringtoString()
-
-
-
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 toBLOCKin the Valkey API.- Returns:
this.
-
count
public B count(java.lang.Long count)
The maximal number of elements requested. Equivalent toCOUNTin the Valkey API.- Returns:
this.
-
self
protected abstract B self()
-
build
public abstract C build()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-