Package io.lettuce.core.pubsub
Interface PubSubMessage<K,V>
-
- All Known Implementing Classes:
PubSubOutput
public interface PubSubMessage<K,V>
Represents a Pub/Sub notification message.- Since:
- 6.0
- Author:
- Mark Paluch
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description V
body()
K
channel()
long
count()
K
pattern()
PubSubOutput.Type
type()
-
-
-
Method Detail
-
type
PubSubOutput.Type type()
- Returns:
- the
PubSubOutput.Type
message type.
-
channel
K channel()
- Returns:
- name of the channel to which this notification belongs to.
-
pattern
K pattern()
- Returns:
- pattern that applies if the message was received through a pattern subscription. Can be
null
.
-
count
long count()
- Returns:
- the subscriber count if applicable.
-
body
V body()
- Returns:
- the message body, if applicable. Can be
null
.
-
-