Class RedisStreamCommands.XPendingOptions
java.lang.Object
org.springframework.data.redis.connection.RedisStreamCommands.XPendingOptions
- Enclosing interface:
- RedisStreamCommands
Value Object holding parameters for obtaining pending messages.
- Since:
- 2.3
- Author:
- Christoph Strobl
- 
Method SummaryModifier and TypeMethodDescriptionAppend given consumer.getCount()Range<?>getRange()booleanbooleanCreate newRedisStreamCommands.XPendingOptionswith givenRangeand limit.Create newRedisStreamCommands.XPendingOptionswith an unboundedRange(- +).Create newRedisStreamCommands.XPendingOptionswith an unboundedRange(- +).
- 
Method Details- 
unboundedCreate newRedisStreamCommands.XPendingOptionswith an unboundedRange(- +).- Returns:
- new instance of RedisStreamCommands.XPendingOptions.
 
- 
unboundedCreate newRedisStreamCommands.XPendingOptionswith an unboundedRange(- +).- Parameters:
- count- the max number of messages to return. Must not be negative.
- Returns:
- new instance of RedisStreamCommands.XPendingOptions.
 
- 
rangeCreate newRedisStreamCommands.XPendingOptionswith givenRangeand limit.- Parameters:
- range- must not be null.
- count- the max number of messages to return. Must not be negative.
- Returns:
- new instance of RedisStreamCommands.XPendingOptions.
 
- 
consumerAppend given consumer.- Parameters:
- consumerName- must not be null.
- Returns:
- new instance of RedisStreamCommands.XPendingOptions.
 
- 
getRange- Returns:
- never null.
 
- 
getCount- Returns:
- can be null.
 
- 
getConsumerName- Returns:
- can be null.
 
- 
hasConsumerpublic boolean hasConsumer()- Returns:
- true if a consumer name is present.
 
- 
isLimitedpublic boolean isLimited()- Returns:
- true count is set.
 
 
-