Module lettuce.core

Class ChannelMessage<K,​V>

java.lang.Object
io.lettuce.core.pubsub.api.reactive.ChannelMessage<K,​V>

public class ChannelMessage<K,​V>
extends Object
Message payload for a subscription to a channel.
Author:
Mark Paluch
  • Constructor Details

    • ChannelMessage

      public ChannelMessage​(K channel, V message)
      Parameters:
      channel - the channel
      message - the message
  • Method Details

    • getChannel

      public K getChannel()
      Returns:
      the channel
    • getMessage

      public V getMessage()
      Returns:
      the message