Interface QueueBatch

All Superinterfaces:
org.teavm.jso.JSObject

public interface QueueBatch extends org.teavm.jso.JSObject
Cloudflare's MessageBatch.

MessageBatch is what a handler sees. This is the JavaScript object behind it.

Since:
1.0.0
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    One message from a Queue, as JavaScript delivers it.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Marks every message delivered.
    org.teavm.jso.core.JSArrayReader<QueueBatch.QueueMessage>
    Returns the messages.
    Returns the name of the queue this batch came from.
    void
    Marks every message for redelivery.

    Methods inherited from interface org.teavm.jso.JSObject

    cast
  • Method Details

    • getQueue

      String getQueue()
      Returns the name of the queue this batch came from.
      Returns:
      the name of the queue this batch came from
    • getMessages

      org.teavm.jso.core.JSArrayReader<QueueBatch.QueueMessage> getMessages()
      Returns the messages.
      Returns:
      the messages
    • ackAll

      void ackAll()
      Marks every message delivered.
    • retryAll

      void retryAll()
      Marks every message for redelivery.