Package io.smallrye.reactive.messaging
Interface Targeted
- All Known Implementing Classes:
Targeted.Default
Container of payloads to send multiple messages to different channels
The TargetedMessages.Default
implementation holds channel-payload mappings in an unmodifiable Map
.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Targeted
Return the payload associated with the given channelstatic Targeted
static Targeted
static Targeted
static Targeted
static Targeted
of
(String c1, Object p1, String c2, Object p2, String c3, Object p3, String c4, Object p4, String c5, Object p5) static Targeted
of
(String c1, Object p1, String c2, Object p2, String c3, Object p3, String c4, Object p4, String c5, Object p5, String c6, Object p6) Add the given channel-payload mapping to this target mapping by returning a new one.Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
from
-
of
-
of
-
of
-
of
-
of
-
of
-
get
Return the payload associated with the given channel- Parameters:
channel
- the channel name- Returns:
- the payload associated with the channel. Returns
null
if this mapping does not contain the given channel.
-
with
Add the given channel-payload mapping to this target mapping by returning a new one. It returns a newTargeted
instance.- Parameters:
channel
- the channel to addpayload
- the payload to add- Returns:
- a new instance of
Targeted
-