com.lambdaworks.redis.pubsub
Class PubSubOutput<K,V>
java.lang.Object
com.lambdaworks.redis.protocol.CommandOutput<K,V,V>
com.lambdaworks.redis.pubsub.PubSubOutput<K,V>
- Type Parameters:
V - Value type.
public class PubSubOutput<K,V>
- extends CommandOutput<K,V,V>
One element of the redis pub/sub stream. May be a message or notification
of subscription details.
- Author:
- Will Glozer
|
Method Summary |
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. |
com.lambdaworks.redis.pubsub.PubSubOutput.Type |
type()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PubSubOutput
public PubSubOutput(RedisCodec<K,V> codec)
type
public com.lambdaworks.redis.pubsub.PubSubOutput.Type type()
channel
public K channel()
pattern
public K pattern()
count
public long count()
set
public void set(ByteBuffer bytes)
- Description copied from class:
CommandOutput
- Set the command output to a sequence of bytes, or null. Concrete
CommandOutput implementations must override this method
unless they only receive an integer value which cannot be null.
- Overrides:
set in class CommandOutput<K,V,V>
- Parameters:
bytes - The command output, or null.
set
public void set(long integer)
- Description copied from class:
CommandOutput
- Set the command output to a 64-bit signed integer. Concrete
CommandOutput implementations must override this method
unless they only receive a byte array value.
- Overrides:
set in class CommandOutput<K,V,V>
- Parameters:
integer - The command output.
Copyright © 2013. All Rights Reserved.