Class ChannelTopic
java.lang.Object
org.springframework.data.redis.listener.ChannelTopic
- All Implemented Interfaces:
Topic
Channel topic implementation (maps to a Redis channel).
- Author:
- Costin Leau, Mark Paluch
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
ChannelTopic
Constructs a newChannelTopic
instance.- Parameters:
name
- must not be null.
-
-
Method Details
-
of
Create a newChannelTopic
for channel subscriptions.- Parameters:
name
- the channel name, must not be null or empty.- Returns:
- the
ChannelTopic
forchannelName
. - Since:
- 2.1
-
getTopic
Description copied from interface:Topic
Returns the topic (as a String). -
toString
-
equals
-
hashCode
public int hashCode()
-