public static class RedisStreamCommands.XPendingOptions extends Object
Modifier and Type | Method and Description |
---|---|
RedisStreamCommands.XPendingOptions |
consumer(String consumerName)
Append given consumer.
|
String |
getConsumerName() |
Long |
getCount() |
org.springframework.data.domain.Range<?> |
getRange() |
boolean |
hasConsumer() |
boolean |
isLimited() |
static RedisStreamCommands.XPendingOptions |
range(org.springframework.data.domain.Range<?> range,
Long count)
Create new
RedisStreamCommands.XPendingOptions with given Range and limit. |
static RedisStreamCommands.XPendingOptions |
unbounded()
Create new
RedisStreamCommands.XPendingOptions with an unbounded Range (- +). |
static RedisStreamCommands.XPendingOptions |
unbounded(Long count)
Create new
RedisStreamCommands.XPendingOptions with an unbounded Range (- +). |
public static RedisStreamCommands.XPendingOptions unbounded()
RedisStreamCommands.XPendingOptions
with an unbounded Range
(- +).RedisStreamCommands.XPendingOptions
.public static RedisStreamCommands.XPendingOptions unbounded(Long count)
RedisStreamCommands.XPendingOptions
with an unbounded Range
(- +).count
- the max number of messages to return. Must not be null.RedisStreamCommands.XPendingOptions
.public static RedisStreamCommands.XPendingOptions range(org.springframework.data.domain.Range<?> range, Long count)
RedisStreamCommands.XPendingOptions
with given Range
and limit.RedisStreamCommands.XPendingOptions
.public RedisStreamCommands.XPendingOptions consumer(String consumerName)
consumerName
- must not be null.RedisStreamCommands.XPendingOptions
.public org.springframework.data.domain.Range<?> getRange()
public boolean hasConsumer()
public boolean isLimited()
Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.