K - Key type.V - Value type.public class PubSubOutput<K,V> extends CommandOutput<K,V,V> implements PubSubMessage<K,V>
| Modifier and Type | Class and Description |
|---|---|
static class |
PubSubOutput.Type |
codec, error, output| Constructor and Description |
|---|
PubSubOutput(RedisCodec<K,V> codec) |
| Modifier and Type | Method and Description |
|---|---|
V |
body() |
K |
channel() |
long |
count() |
K |
pattern() |
void |
set(ByteBuffer bytes)
Set the command output to a sequence of bytes, or null.
|
void |
set(long integer)
Set the command output to a 64-bit signed integer.
|
PubSubOutput.Type |
type() |
complete, decodeAscii, get, getError, hasError, multi, multiArray, multiMap, multiPush, multiSet, set, set, setBigNumber, setError, setError, setSingle, toStringpublic PubSubOutput(RedisCodec<K,V> codec)
public PubSubOutput.Type type()
type in interface PubSubMessage<K,V>PubSubOutput.Type message type.public K channel()
channel in interface PubSubMessage<K,V>public K pattern()
pattern in interface PubSubMessage<K,V>null.public long count()
count in interface PubSubMessage<K,V>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,V>bytes - The command output, or null.public void set(long integer)
CommandOutputCommandOutput implementations must override this
method unless they only receive a byte array value.set in class CommandOutput<K,V,V>integer - The command output.public V body()
body in interface PubSubMessage<K,V>null.Copyright © 2020 lettuce.io. All rights reserved.