org.springframework.data.redis.listener
Class ChannelTopic

java.lang.Object
  extended by org.springframework.data.redis.listener.ChannelTopic
All Implemented Interfaces:
Topic

public class ChannelTopic
extends Object
implements Topic

Channel topic implementation (maps to a Redis channel).


Constructor Summary
ChannelTopic(String name)
          Constructs a new ChannelTopic instance.
 
Method Summary
 boolean equals(Object obj)
           
 String getTopic()
          Returns the topic name.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChannelTopic

public ChannelTopic(String name)
Constructs a new ChannelTopic instance.

Parameters:
name -
Method Detail

getTopic

public String getTopic()
Returns the topic name.

Specified by:
getTopic in interface Topic
Returns:
topic name

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object