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
-
Method Summary
Modifier and TypeMethodDescriptionbooleanLimit the size of the stream to the given maximum number of elements.inthashCode()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.none()
-
Method Details
-
none
- Returns:
-
maxlen
Limit the size of the stream to the given maximum number of elements.- Returns:
- new instance of
RedisStreamCommands.XAddOptions.
-
makeNoStream
Disable creation of stream if it does not already exist.- Returns:
- new instance of
RedisStreamCommands.XAddOptions. - Since:
- 2.6
-
makeNoStream
Disable 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
-
getMaxlen
Limit the size of the stream to the given maximum number of elements.- Returns:
- can be null.
-
hasMaxlen
public boolean hasMaxlen()- Returns:
- true if MAXLEN is set.
-
isNoMkStream
public boolean isNoMkStream()- Returns:
- true if NOMKSTREAM is set.
- Since:
- 2.6
-
equals
-
hashCode
public int hashCode()
-