public class StreamReadOutput<K,V> extends CommandOutput<K,V,List<StreamMessage<K,V>>> implements StreamingOutput<StreamMessage<K,V>>
StreamingOutput.Subscriber<T>codec, error, output| Constructor and Description |
|---|
StreamReadOutput(RedisCodec<K,V> codec) |
| Modifier and Type | Method and Description |
|---|---|
void |
complete(int depth)
Mark the command output complete.
|
StreamingOutput.Subscriber<StreamMessage<K,V>> |
getSubscriber()
Retrieves the
StreamingOutput.Subscriber. |
void |
multi(int count)
Mark the beginning of a multi sequence (array).
|
void |
set(ByteBuffer bytes)
Set the command output to a sequence of bytes, or null.
|
void |
setSubscriber(StreamingOutput.Subscriber<StreamMessage<K,V>> subscriber)
Sets the
StreamingOutput.Subscriber. |
decodeAscii, get, getError, hasError, set, setError, setError, setSingle, toStringpublic StreamReadOutput(RedisCodec<K,V> codec)
public void set(ByteBuffer bytes)
CommandOutputCommandOutput implementations must override this
method unless they only receive an integer value which cannot be null.set in class CommandOutput<K,V,List<StreamMessage<K,V>>>bytes - The command output, or null.public void multi(int count)
CommandOutputmulti in class CommandOutput<K,V,List<StreamMessage<K,V>>>count - expected number of elements in this multi sequence.public void complete(int depth)
CommandOutputcomplete in class CommandOutput<K,V,List<StreamMessage<K,V>>>depth - Remaining depth of output queue.public void setSubscriber(StreamingOutput.Subscriber<StreamMessage<K,V>> subscriber)
StreamingOutputStreamingOutput.Subscriber.setSubscriber in interface StreamingOutput<StreamMessage<K,V>>public StreamingOutput.Subscriber<StreamMessage<K,V>> getSubscriber()
StreamingOutputStreamingOutput.Subscriber.getSubscriber in interface StreamingOutput<StreamMessage<K,V>>Copyright © 2020 lettuce.io. All rights reserved.