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 ChannelTopic
Create a newChannelTopic
for channel subscriptions.getTopic()
Returns the topic (as a String).static PatternTopic
Create a newPatternTopic
for channel subscriptions based on apattern
.
-
Method Details
-
channel
Create a newChannelTopic
for channel subscriptions.- Parameters:
channelName
-name
of the Redis channel; must not be null.- Returns:
- the
ChannelTopic
for the givenchannelName
. - Since:
- 3.5
-
pattern
Create a newPatternTopic
for channel subscriptions based on apattern
.- Parameters:
pattern
-pattern
used to match channels; must not be null or empty.- Returns:
- the
PatternTopic
for the givenpattern
. - Since:
- 3.5
-
getTopic
String getTopic()Returns the topic (as a String).- Returns:
- the topic
-