public static class RedisStreamCommands.XAddOptions extends Object
Modifier and Type | Method and Description |
---|---|
RedisStreamCommands.XAddOptions |
approximateTrimming(boolean approximateTrimming)
Apply efficient trimming for capped streams using the
~ flag. |
boolean |
equals(Object o) |
Long |
getMaxlen()
Limit the size of the stream to the given maximum number of elements.
|
RecordId |
getMinId() |
int |
hashCode() |
boolean |
hasMaxlen() |
boolean |
hasMinId() |
boolean |
isApproximateTrimming() |
boolean |
isNoMkStream() |
static RedisStreamCommands.XAddOptions |
makeNoStream()
Disable creation of stream if it does not already exist.
|
static RedisStreamCommands.XAddOptions |
makeNoStream(boolean makeNoStream)
Disable creation of stream if it does not already exist.
|
static RedisStreamCommands.XAddOptions |
maxlen(long maxlen)
Limit the size of the stream to the given maximum number of elements.
|
RedisStreamCommands.XAddOptions |
minId(RecordId minId)
Apply
MINID trimming strategy, that evicts entries with IDs lower than the one specified. |
static RedisStreamCommands.XAddOptions |
none() |
public static RedisStreamCommands.XAddOptions none()
public static RedisStreamCommands.XAddOptions makeNoStream()
RedisStreamCommands.XAddOptions
.public static RedisStreamCommands.XAddOptions makeNoStream(boolean makeNoStream)
makeNoStream
- true
to not create a stream if it does not already exist.RedisStreamCommands.XAddOptions
.public static RedisStreamCommands.XAddOptions maxlen(long maxlen)
RedisStreamCommands.XAddOptions
.public RedisStreamCommands.XAddOptions minId(RecordId minId)
MINID
trimming strategy, that evicts entries with IDs lower than the one specified.minId
- the minimum record Id to retain.RedisStreamCommands.XAddOptions
.public RedisStreamCommands.XAddOptions approximateTrimming(boolean approximateTrimming)
~
flag.RedisStreamCommands.XAddOptions
.public boolean isNoMkStream()
@Nullable public Long getMaxlen()
public boolean hasMaxlen()
public boolean isApproximateTrimming()
@Nullable public RecordId getMinId()
public boolean hasMinId()
Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.