Class RedisStreamCommands.XAddOptions
java.lang.Object
org.springframework.data.redis.connection.RedisStreamCommands.XAddOptions
- Enclosing interface:
- RedisStreamCommands
Additional options applicable for XADD command.
- Since:
- 2.3
- Author:
- Christoph Strobl, Mark John Moreno, Liming Deng
- 
Method SummaryModifier and TypeMethodDescriptionapproximateTrimming(boolean approximateTrimming) Apply efficient trimming for capped streams using the~flag.booleanLimit the size of the stream to the given maximum number of elements.getMinId()inthashCode()booleanbooleanhasMinId()booleanbooleanDisable creation of stream if it does not already exist.makeNoStream(boolean makeNoStream) Disable creation of stream if it does not already exist.maxlen(long maxlen) Limit the size of the stream to the given maximum number of elements.ApplyMINIDtrimming strategy, that evicts entries with IDs lower than the one specified.none()
- 
Method Details- 
none- Returns:
 
- 
makeNoStreamDisable creation of stream if it does not already exist.- Returns:
- new instance of RedisStreamCommands.XAddOptions.
- Since:
- 2.6
 
- 
makeNoStreamDisable creation of stream if it does not already exist.- Parameters:
- makeNoStream-- trueto not create a stream if it does not already exist.
- Returns:
- new instance of RedisStreamCommands.XAddOptions.
- Since:
- 2.6
 
- 
maxlenLimit the size of the stream to the given maximum number of elements.- Returns:
- new instance of RedisStreamCommands.XAddOptions.
 
- 
minIdApplyMINIDtrimming strategy, that evicts entries with IDs lower than the one specified.- Parameters:
- minId- the minimum record Id to retain.
- Returns:
- new instance of RedisStreamCommands.XAddOptions.
- Since:
- 2.7
 
- 
approximateTrimmingApply efficient trimming for capped streams using the~flag.- Returns:
- new instance of RedisStreamCommands.XAddOptions.
 
- 
isNoMkStreampublic boolean isNoMkStream()- Returns:
- true if NOMKSTREAM is set.
- Since:
- 2.6
 
- 
getMaxlenLimit the size of the stream to the given maximum number of elements.- Returns:
- can be null.
 
- 
hasMaxlenpublic boolean hasMaxlen()- Returns:
- true if MAXLEN is set.
 
- 
isApproximateTrimmingpublic boolean isApproximateTrimming()- Returns:
- true if approximateTrimming is set.
 
- 
getMinId- Returns:
- the minimum record Id to retain during trimming.
- Since:
- 2.7
 
- 
hasMinIdpublic boolean hasMinId()- Returns:
- true if MINID is set.
- Since:
- 2.7
 
- 
equals
- 
hashCodepublic int hashCode()
 
-