Interface Topic
- All Known Implementing Classes:
ChannelTopic,PatternTopic
public interface Topic
Topic for a Redis message. Acts a high-level abstraction on top of Redis low-level channels or patterns.
- Author:
- Costin Leau, Mark Paluch
-
Method Summary
Modifier and TypeMethodDescriptionstatic ChannelTopicCreate a newChannelTopicfor channel subscriptions.getTopic()Returns the topic (as a String).static PatternTopicCreate a newPatternTopicfor channel subscriptions based on apattern.
-
Method Details
-
channel
Create a newChannelTopicfor channel subscriptions.- Parameters:
channelName-nameof the Redis channel; must not be null.- Returns:
- the
ChannelTopicfor the givenchannelName. - Since:
- 3.5
-
pattern
Create a newPatternTopicfor channel subscriptions based on apattern.- Parameters:
pattern-patternused to match channels; must not be null or empty.- Returns:
- the
PatternTopicfor the givenpattern. - Since:
- 3.5
-
getTopic
String getTopic()Returns the topic (as a String).- Returns:
- the topic
-