java.lang.Object
io.lettuce.core.output.CommandOutput<K,V,List<StreamMessage<K,V>>>
io.lettuce.core.output.StreamMessageListOutput<K,V>
- All Implemented Interfaces:
StreamingOutput<StreamMessage<K,V>>
public class StreamMessageListOutput<K,V> extends CommandOutput<K,V,List<StreamMessage<K,V>>> implements StreamingOutput<StreamMessage<K,V>>
List of StreamMessages.- Since:
- 5.1
- Author:
- Mark Paluch
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.lettuce.core.output.StreamingOutput
StreamingOutput.Subscriber<T> -
Field Summary
Fields inherited from class io.lettuce.core.output.CommandOutput
codec, error, output -
Constructor Summary
Constructors Constructor Description StreamMessageListOutput(RedisCodec<K,V> codec, K stream) -
Method Summary
Modifier and Type Method Description voidcomplete(int depth)Mark the command output complete.StreamingOutput.Subscriber<StreamMessage<K,V>>getSubscriber()Retrieves theStreamingOutput.Subscriber.voidmulti(int count)Mark the beginning of a multi sequence (array).voidset(ByteBuffer bytes)Update the command output with a sequence of bytes, ornull.voidsetSubscriber(StreamingOutput.Subscriber<StreamMessage<K,V>> subscriber)Sets theStreamingOutput.Subscriber.Methods inherited from class io.lettuce.core.output.CommandOutput
decodeAscii, get, getError, hasError, multiArray, multiMap, multiPush, multiSet, set, set, set, setBigNumber, setError, setError, setSingle, toString
-
Constructor Details
-
StreamMessageListOutput
-
-
Method Details
-
set
Description copied from class:CommandOutputUpdate the command output with a sequence of bytes, ornull. ConcreteCommandOutputimplementations must override this method to decodebulk/bytes response values.- Overrides:
setin classCommandOutput<K,V,List<StreamMessage<K,V>>>- Parameters:
bytes- The command output, or null.
-
multi
public void multi(int count)Description copied from class:CommandOutputMark the beginning of a multi sequence (array).- Overrides:
multiin classCommandOutput<K,V,List<StreamMessage<K,V>>>- Parameters:
count- expected number of elements in this multi sequence.
-
complete
public void complete(int depth)Description copied from class:CommandOutputMark the command output complete.- Overrides:
completein classCommandOutput<K,V,List<StreamMessage<K,V>>>- Parameters:
depth- Remaining depth of output queue.
-
setSubscriber
Description copied from interface:StreamingOutputSets theStreamingOutput.Subscriber.- Specified by:
setSubscriberin interfaceStreamingOutput<K>
-
getSubscriber
Description copied from interface:StreamingOutputRetrieves theStreamingOutput.Subscriber.- Specified by:
getSubscriberin interfaceStreamingOutput<K>- Returns:
-