org.springframework.data.redis.listener
Class ChannelTopic
java.lang.Object
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).
ChannelTopic
public ChannelTopic(String name)
- Constructs a new
ChannelTopic
instance.
- Parameters:
name
-
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