Class DeliveryContext<T>

java.lang.Object
io.vertx.mutiny.core.eventbus.DeliveryContext<T>
All Implemented Interfaces:
io.smallrye.mutiny.vertx.MutinyDelegate

public class DeliveryContext<T> extends Object implements io.smallrye.mutiny.vertx.MutinyDelegate
Encapsulates a message being delivered by Vert.x as well as providing control over the message delivery.

Used with event bus interceptors.

NOTE: This class has been automatically generated from the original non Mutiny-ified interface using Vert.x codegen.

  • Field Details

    • __TYPE_ARG

      public static final io.smallrye.mutiny.vertx.TypeArg<DeliveryContext> __TYPE_ARG
    • __typeArg_0

      public final io.smallrye.mutiny.vertx.TypeArg<T> __typeArg_0
  • Constructor Details

    • DeliveryContext

      public DeliveryContext(io.vertx.core.eventbus.DeliveryContext delegate)
    • DeliveryContext

      public DeliveryContext(Object delegate, io.smallrye.mutiny.vertx.TypeArg<T> typeArg_0)
    • DeliveryContext

      public DeliveryContext(io.vertx.core.eventbus.DeliveryContext delegate, io.smallrye.mutiny.vertx.TypeArg<T> typeArg_0)
  • Method Details

    • getDelegate

      public io.vertx.core.eventbus.DeliveryContext getDelegate()
      Specified by:
      getDelegate in interface io.smallrye.mutiny.vertx.MutinyDelegate
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • message

      public Message<T> message()
      Returns:
      The message being delivered
    • next

      public void next()
    • send

      public boolean send()
      Returns:
      true if the message is being sent (point to point) or False if the message is being published
    • body

      public Object body()
      Returns:
      the value delivered by the message (before or after being processed by the codec)
    • newInstance

      public static <T> DeliveryContext<T> newInstance(io.vertx.core.eventbus.DeliveryContext arg)
    • newInstance

      public static <T> DeliveryContext<T> newInstance(io.vertx.core.eventbus.DeliveryContext arg, io.smallrye.mutiny.vertx.TypeArg<T> __typeArg_T)