Class Targeted.Default

java.lang.Object
io.smallrye.reactive.messaging.Targeted.Default
All Implemented Interfaces:
Targeted, Iterable<Map.Entry<String,Object>>
Enclosing interface:
Targeted

public static class Targeted.Default extends Object implements Targeted
Default Targeted implementation
  • Constructor Details

  • Method Details

    • get

      public Object get(String channel)
      Description copied from interface: Targeted
      Return the payload associated with the given channel
      Specified by:
      get in interface Targeted
      Parameters:
      channel - the channel name
      Returns:
      the payload associated with the channel. Returns null if this mapping does not contain the given channel.
    • with

      public Targeted with(String channel, Object payload)
      Description copied from interface: Targeted
      Add the given channel-payload mapping to this target mapping by returning a new one. It returns a new Targeted instance.
      Specified by:
      with in interface Targeted
      Parameters:
      channel - the channel to add
      payload - the payload to add
      Returns:
      a new instance of Targeted
    • iterator

      public Iterator<Map.Entry<String,Object>> iterator()
      Specified by:
      iterator in interface Iterable<Map.Entry<String,Object>>