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 Summary
Modifier and TypeMethodDescriptionAppend given consumer.getCount()Range<?>getRange()booleanbooleanCreate newRedisStreamCommands.XPendingOptionswith givenRangeand limit.Create newRedisStreamCommands.XPendingOptionswith an unboundedRange(- +).Create newRedisStreamCommands.XPendingOptionswith an unboundedRange(- +).
-
Method Details
-
unbounded
Create newRedisStreamCommands.XPendingOptionswith an unboundedRange(- +).- Returns:
- new instance of
RedisStreamCommands.XPendingOptions.
-
unbounded
Create newRedisStreamCommands.XPendingOptionswith an unboundedRange(- +).- Parameters:
count- the max number of messages to return. Must not be null.- Returns:
- new instance of
RedisStreamCommands.XPendingOptions.
-
range
Create newRedisStreamCommands.XPendingOptionswith givenRangeand limit.- Returns:
- new instance of
RedisStreamCommands.XPendingOptions.
-
consumer
Append 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.
-
hasConsumer
public boolean hasConsumer()- Returns:
- true if a consumer name is present.
-
isLimited
public boolean isLimited()- Returns:
- true count is set.
-