Package dev.gmitch215.bytebox
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 ClassesModifier and TypeInterfaceDescriptionstatic interfaceOne message from a Queue, as JavaScript delivers it. -
Method Summary
Modifier and TypeMethodDescriptionvoidackAll()Marks every message delivered.org.teavm.jso.core.JSArrayReader<QueueBatch.QueueMessage> Returns the messages.getQueue()Returns the name of the queue this batch came from.voidretryAll()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.
-