Package glide.api.models.commands.stream
Class StreamAddOptions.StreamAddOptionsBuilder
- java.lang.Object
-
- glide.api.models.commands.stream.StreamAddOptions.StreamAddOptionsBuilder
-
- Enclosing class:
- StreamAddOptions
public static class StreamAddOptions.StreamAddOptionsBuilder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StreamAddOptionsbuild()StreamAddOptions.StreamAddOptionsBuilderid(java.lang.String id)If set, the new entry will be added with thisid.StreamAddOptions.StreamAddOptionsBuildermakeStream(java.lang.Boolean makeStream)If set tofalse, a new stream won't be created if no stream matches the given key.java.lang.StringtoString()StreamAddOptions.StreamAddOptionsBuildertrim(StreamTrimOptions trim)If set, the add operation will also trim the older entries in the stream.
-
-
-
Method Detail
-
id
public StreamAddOptions.StreamAddOptionsBuilder id(java.lang.String id)
If set, the new entry will be added with thisid.- Returns:
this.
-
makeStream
public StreamAddOptions.StreamAddOptionsBuilder makeStream(java.lang.Boolean makeStream)
If set tofalse, a new stream won't be created if no stream matches the given key.
Equivalent toNOMKSTREAMin the Valkey API.- Returns:
this.
-
trim
public StreamAddOptions.StreamAddOptionsBuilder trim(StreamTrimOptions trim)
If set, the add operation will also trim the older entries in the stream.- Returns:
this.
-
build
public StreamAddOptions build()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-