Class ReactiveSubscription.ChannelMessage<C,M>
java.lang.Object
org.springframework.data.redis.connection.ReactiveSubscription.ChannelMessage<C,M>
- Type Parameters:
C
- type of how the channel name is represented.M
- type of how the message is represented.
- All Implemented Interfaces:
ReactiveSubscription.Message<C,
M>
- Direct Known Subclasses:
ReactiveSubscription.PatternMessage
- Enclosing interface:
- ReactiveSubscription
public static class ReactiveSubscription.ChannelMessage<C,M>
extends Object
implements ReactiveSubscription.Message<C,M>
Value object for a Redis channel message.
- Since:
- 2.1
- Author:
- Mark Paluch, Christoph Strobl
-
Constructor Summary
ConstructorDescriptionChannelMessage
(C channel, M message) Create a newReactiveSubscription.ChannelMessage
. -
Method Summary
-
Constructor Details
-
ChannelMessage
Create a newReactiveSubscription.ChannelMessage
.- Parameters:
channel
- must not be null.message
- must not be null.
-
-
Method Details
-
getChannel
Description copied from interface:ReactiveSubscription.Message
Get the channel the message published to.- Specified by:
getChannel
in interfaceReactiveSubscription.Message<C,
M> - Returns:
- never null.
-
getMessage
Description copied from interface:ReactiveSubscription.Message
Get the actual message body.- Specified by:
getMessage
in interfaceReactiveSubscription.Message<C,
M> - Returns:
- never null.
-
equals
-
hashCode
public int hashCode() -
toString
-