V
- Value type.public class PubSubOutput<K,V> extends CommandOutput<K,V,V>
codec, error, output
Constructor and Description |
---|
PubSubOutput(RedisCodec<K,V> codec) |
Modifier and Type | Method and Description |
---|---|
String |
channel() |
long |
count() |
String |
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.
|
com.lambdaworks.redis.pubsub.PubSubOutput.Type |
type() |
complete, decodeAscii, get, getError, hasError, setError, setError
public PubSubOutput(RedisCodec<K,V> codec)
public com.lambdaworks.redis.pubsub.PubSubOutput.Type type()
public String channel()
public String pattern()
public long count()
public void set(ByteBuffer bytes)
CommandOutput
CommandOutput
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)
CommandOutput
CommandOutput
implementations must override this method
unless they only receive a byte array value.set
in class CommandOutput<K,V,V>
integer
- The command output.Copyright © 2014. All rights reserved.