Class ReactiveStreamCommands.ReadCommand
java.lang.Object
org.springframework.data.redis.connection.ReactiveStreamCommands.ReadCommand
- Enclosing interface:
- ReactiveStreamCommands
XRANGE/XREVRANGE command parameters.- 
Constructor SummaryConstructorsConstructorDescriptionReadCommand(List<StreamOffset<ByteBuffer>> streamOffsets, StreamReadOptions readOptions, Consumer consumer) 
- 
Method SummaryModifier and TypeMethodDescriptionApplies aConsumer.from(StreamOffset<ByteBuffer> streamOffset) Creates a newReactiveStreamCommands.ReadCommandgiven aStreamOffset.from(StreamOffset<ByteBuffer>... streamOffsets) Creates a newReactiveStreamCommands.ReadCommandgiven aStreamOffsets.withOptions(StreamReadOptions options) Applies the givenStreamReadOptions.
- 
Constructor Details- 
ReadCommandpublic ReadCommand(List<StreamOffset<ByteBuffer>> streamOffsets, @Nullable StreamReadOptions readOptions, @Nullable Consumer consumer) - Parameters:
- streamOffsets- must not be null.
- readOptions-
- consumer-
 
 
- 
- 
Method Details- 
fromCreates a newReactiveStreamCommands.ReadCommandgiven aStreamOffset.- Parameters:
- streamOffset- must not be null.
- Returns:
- a new ReactiveStreamCommands.ReadCommandforStreamOffset.
 
- 
fromCreates a newReactiveStreamCommands.ReadCommandgiven aStreamOffsets.- Parameters:
- streamOffsets- must not be null.
- Returns:
- a new ReactiveStreamCommands.ReadCommandforStreamOffsets.
 
- 
asApplies aConsumer. Constructs a new command instance with all previously configured properties.- Parameters:
- consumer- must not be null.
- Returns:
- a new ReactiveStreamCommands.ReadCommandwithConsumerapplied.
 
- 
withOptionsApplies the givenStreamReadOptions. Constructs a new command instance with all previously configured properties.- Parameters:
- options- must not be null.
- Returns:
- a new ReactiveStreamCommands.ReadCommandwithConsumerapplied.
 
- 
getStreamOffsets
- 
getReadOptions
- 
getConsumer
 
-