public static class ReactiveStreamCommands.ReadCommand extends Object
XRANGE/XREVRANGE command parameters.| Constructor and Description |
|---|
ReadCommand(List<StreamOffset<ByteBuffer>> streamOffsets,
StreamReadOptions readOptions,
Consumer consumer) |
| Modifier and Type | Method and Description |
|---|---|
ReactiveStreamCommands.ReadCommand |
as(Consumer consumer)
Applies a
Consumer. |
static ReactiveStreamCommands.ReadCommand |
from(StreamOffset<ByteBuffer>... streamOffsets)
Creates a new
ReactiveStreamCommands.ReadCommand given a StreamOffsets. |
static ReactiveStreamCommands.ReadCommand |
from(StreamOffset<ByteBuffer> streamOffset)
Creates a new
ReactiveStreamCommands.ReadCommand given a StreamOffset. |
Consumer |
getConsumer() |
StreamReadOptions |
getReadOptions() |
List<StreamOffset<ByteBuffer>> |
getStreamOffsets() |
ReactiveStreamCommands.ReadCommand |
withOptions(StreamReadOptions options)
Applies the given
StreamReadOptions. |
public ReadCommand(List<StreamOffset<ByteBuffer>> streamOffsets, @Nullable StreamReadOptions readOptions, @Nullable Consumer consumer)
streamOffsets - must not be null.readOptions - consumer - public static ReactiveStreamCommands.ReadCommand from(StreamOffset<ByteBuffer> streamOffset)
ReactiveStreamCommands.ReadCommand given a StreamOffset.streamOffset - must not be null.ReactiveStreamCommands.ReadCommand for StreamOffset.public static ReactiveStreamCommands.ReadCommand from(StreamOffset<ByteBuffer>... streamOffsets)
ReactiveStreamCommands.ReadCommand given a StreamOffsets.streamOffsets - must not be null.ReactiveStreamCommands.ReadCommand for StreamOffsets.public ReactiveStreamCommands.ReadCommand as(Consumer consumer)
Consumer. Constructs a new command instance with all previously configured properties.consumer - must not be null.ReactiveStreamCommands.ReadCommand with Consumer applied.public ReactiveStreamCommands.ReadCommand withOptions(StreamReadOptions options)
StreamReadOptions. Constructs a new command instance with all previously configured
properties.options - must not be null.ReactiveStreamCommands.ReadCommand with Consumer applied.public List<StreamOffset<ByteBuffer>> getStreamOffsets()
@Nullable public StreamReadOptions getReadOptions()
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.