C - type of how the channel name is represented.M - type of how the message is represented.public static class ReactiveSubscription.ChannelMessage<C,M> extends Object implements ReactiveSubscription.Message<C,M>
| Constructor and Description |
|---|
ChannelMessage(C channel,
M message)
Create a new
ReactiveSubscription.ChannelMessage. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
C |
getChannel()
Get the channel the message published to.
|
M |
getMessage()
Get the actual message body.
|
int |
hashCode() |
String |
toString() |
public ChannelMessage(C channel, M message)
ReactiveSubscription.ChannelMessage.channel - must not be null.message - must not be null.public C getChannel()
ReactiveSubscription.MessagegetChannel in interface ReactiveSubscription.Message<C,M>public M getMessage()
ReactiveSubscription.MessagegetMessage in interface ReactiveSubscription.Message<C,M>Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.