Package dev.gmitch215.bytebox
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 TypeMethodDescriptionvoidack()Marks this message delivered.intReturns how many times delivery has been attempted.getBody()Returns the body, which is any structured-clone value.getId()Returns the system-generated message id.org.teavm.jso.JSObjectReturns when the message was sent, as aDate.voidretry()Marks this message for redelivery.voidretry(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 aDate.- 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 }
-