Class ReactiveStreamCommands.PendingRecordsCommand
java.lang.Object
org.springframework.data.redis.connection.ReactiveRedisConnection.KeyCommand
org.springframework.data.redis.connection.ReactiveStreamCommands.PendingRecordsCommand
- All Implemented Interfaces:
ReactiveRedisConnection.Command
- Enclosing interface:
ReactiveStreamCommands
public static class ReactiveStreamCommands.PendingRecordsCommand
extends ReactiveRedisConnection.KeyCommand
Value Object holding parameters for obtaining pending messages.
- Since:
- 2.3
- Author:
- Christoph Strobl, Jeonggyu Choi
-
Method Summary
Modifier and TypeMethodDescriptionAppend given consumer.@Nullable String@Nullable LonggetCount()@Nullable DurationRange<?> getRange()booleanbooleanbooleanminIdleTime(Duration minIdleTime) Append given minimum idle time.Create newReactiveStreamCommands.PendingRecordsCommandwith givenRangeand limit.Methods inherited from class ReactiveRedisConnection.KeyCommand
getKeyMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ReactiveRedisConnection.Command
getName
-
Method Details
-
range
Create newReactiveStreamCommands.PendingRecordsCommandwith 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.
-
consumer
Append given consumer.- Parameters:
consumerName- must not be null.- Returns:
- new instance of
ReactiveStreamCommands.PendingRecordsCommand.
-
minIdleTime
Append given minimum idle time.- Parameters:
minIdleTime- must not be null.- Returns:
- new instance of
ReactiveStreamCommands.PendingRecordsCommand. - Since:
- 4.0
-
getGroupName
-
getConsumerName
- Returns:
- can be null.
-
getRange
- Returns:
- never null.
-
getCount
- Returns:
- can be null.
-
getMinIdleTime
- 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.
-
hasMinIdleTime
public boolean hasMinIdleTime()- Returns:
- true if idle is set.
-