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 Details

    • channel

      static ChannelTopic channel(String channelName)
      Create a new ChannelTopic for channel subscriptions.
      Parameters:
      channelName - name of the Redis channel; must not be null.
      Returns:
      the ChannelTopic for the given channelName.
      Since:
      3.5
    • pattern

      static PatternTopic pattern(String pattern)
      Create a new PatternTopic for channel subscriptions based on a pattern.
      Parameters:
      pattern - pattern used to match channels; must not be null or empty.
      Returns:
      the PatternTopic for the given pattern.
      Since:
      3.5
    • getTopic

      String getTopic()
      Returns the topic (as a String).
      Returns:
      the topic