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
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic TargetedReturn the payload associated with the given channelstatic Targetedstatic Targetedstatic Targetedstatic Targetedstatic Targetedof(String c1, Object p1, String c2, Object p2, String c3, Object p3, String c4, Object p4, String c5, Object p5) static Targetedof(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
nullif 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 newTargetedinstance.- Parameters:
channel- the channel to addpayload- the payload to add- Returns:
- a new instance of
Targeted
-