P
- type of how the pattern is represented.C
- type of how the channel name is represented.M
- type of how the message is represented.public static class ReactiveSubscription.PatternMessage<P,C,M> extends ReactiveSubscription.ChannelMessage<C,M>
Constructor and Description |
---|
PatternMessage(P pattern,
C channel,
M message)
Create a new
ReactiveSubscription.PatternMessage . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
P |
getPattern()
Get the pattern that matched the channel.
|
int |
hashCode() |
String |
toString() |
getChannel, getMessage
public PatternMessage(P pattern, C channel, M message)
ReactiveSubscription.PatternMessage
.pattern
- must not be null.channel
- must not be null.message
- must not be null.public P getPattern()
public boolean equals(@Nullable Object o)
equals
in class ReactiveSubscription.ChannelMessage<C,M>
public int hashCode()
hashCode
in class ReactiveSubscription.ChannelMessage<C,M>
public String toString()
toString
in class ReactiveSubscription.ChannelMessage<C,M>
Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.