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 |
---|---|
protected boolean |
canEqual(Object other) |
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.Message
getChannel
in interface ReactiveSubscription.Message<C,M>
public M getMessage()
ReactiveSubscription.Message
getMessage
in interface ReactiveSubscription.Message<C,M>
protected boolean canEqual(Object other)
Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.