public class XPendingArgs<K> extends Object implements CompositeArgument
XPendingArgs.Builder and call the methods: block(…) .
XPendingArgs is a mutable object and instances should be used only once to avoid shared mutable state.
| Modifier and Type | Class and Description |
|---|---|
static class |
XPendingArgs.Builder
Builder entry points for
XPendingArgs. |
| Constructor and Description |
|---|
XPendingArgs() |
| Modifier and Type | Method and Description |
|---|---|
<K,V> void |
build(CommandArgs<K,V> args)
Build command arguments and contribute arguments to
CommandArgs. |
XPendingArgs<K> |
consumer(Consumer<K> consumer) |
XPendingArgs<K> |
group(K group) |
XPendingArgs<K> |
idle(Duration timeout)
Include only entries that are idle for
Duration. |
XPendingArgs<K> |
idle(long milliseconds)
Include only entries that are idle for
milliseconds. |
XPendingArgs<K> |
limit(Limit limit) |
XPendingArgs<K> |
range(Range<String> range) |
public XPendingArgs<K> range(Range<String> range)
public XPendingArgs<K> consumer(Consumer<K> consumer)
public XPendingArgs<K> group(K group)
group - public XPendingArgs<K> limit(Limit limit)
public XPendingArgs<K> idle(Duration timeout)
Duration.timeout - this XPendingArgs.public XPendingArgs<K> idle(long milliseconds)
milliseconds.milliseconds - this XPendingArgs.public <K,V> void build(CommandArgs<K,V> args)
CompositeArgumentCommandArgs.
Implementing classes are required to implement this method. Depending on the command nature and configured arguments, this method may contribute arguments but is not required to add arguments if none are specified.
build in interface CompositeArgumentK - Key type.V - Value type.args - the command arguments, must not be null.Copyright © 2023 lettuce.io. All rights reserved.