Class Acknowledgement

java.lang.Object
io.vertx.rxjava3.ext.stomp.Acknowledgement
All Implemented Interfaces:
io.vertx.lang.rx.RxDelegate

public class Acknowledgement extends Object implements io.vertx.lang.rx.RxDelegate
Structure passed to acknowledgement handler called when a ACK or NACK frame is received. The handler receives an instance of Acknowledgement with the subscription Frame and the impacted messages. The list of messages depends on the type of acknowledgment used by the subscription.

Subscriptions using the client mode receives all messages that were waiting for acknowledgment that were sent before the acknowledged messages. The list also contains the acknowledged message. This is a cumulative acknowledgement. Subscriptions using the client-individual mode receives a singleton list containing only the acknowledged message.

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

  • Field Details

    • __TYPE_ARG

      public static final io.vertx.lang.rx.TypeArg<Acknowledgement> __TYPE_ARG
  • Constructor Details

    • Acknowledgement

      public Acknowledgement(Acknowledgement delegate)
    • Acknowledgement

      public Acknowledgement(Object delegate)
  • Method Details

    • 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
    • getDelegate

      public Acknowledgement getDelegate()
      Specified by:
      getDelegate in interface io.vertx.lang.rx.RxDelegate
    • subscription

      public Frame subscription()
      Returns:
      the subscription frame
    • frames

      public List<Frame> frames()
      Returns:
      the list of frames that have been acknowledged / not-acknowledged. The content of the list depends on the type of subscription.
    • newInstance

      public static Acknowledgement newInstance(Acknowledgement arg)