Interface QueueBatch.QueueMessage

All Superinterfaces:
org.teavm.jso.JSObject
Enclosing interface:
QueueBatch

public static interface QueueBatch.QueueMessage extends org.teavm.jso.JSObject
One message from a Queue, as JavaScript delivers it.
Since:
1.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    ack()
    Marks this message delivered.
    int
    Returns how many times delivery has been attempted.
    Returns the body, which is any structured-clone value.
    Returns the system-generated message id.
    org.teavm.jso.JSObject
    Returns when the message was sent, as a Date.
    void
    Marks this message for redelivery.
    void
    retry(org.teavm.jso.JSObject options)
    Marks this message for redelivery after a delay.

    Methods inherited from interface org.teavm.jso.JSObject

    cast
  • Method Details

    • getId

      String getId()
      Returns the system-generated message id.
      Returns:
      the system-generated message id
    • getTimestamp

      org.teavm.jso.JSObject getTimestamp()
      Returns when the message was sent, as a Date.
      Returns:
      when the message was sent, as a Date
    • getAttempts

      int getAttempts()
      Returns how many times delivery has been attempted.
      Returns:
      how many times delivery has been attempted
    • getBody

      TSObject getBody()
      Returns the body, which is any structured-clone value.
      Returns:
      the body, which is any structured-clone value
    • ack

      void ack()
      Marks this message delivered.
    • retry

      void retry()
      Marks this message for redelivery.
    • retry

      void retry(org.teavm.jso.JSObject options)
      Marks this message for redelivery after a delay.
      Parameters:
      options - { delaySeconds }