public interface DeviceMessageQueue
Modifier and Type | Interface and Description |
---|---|
static interface |
DeviceMessageQueue.Entry
Entry that can be added to the queue.
|
static interface |
DeviceMessageQueue.EntryBuilder
Builder for device message queue entries.
|
Modifier and Type | Method and Description |
---|---|
DeviceMessageQueue.EntryBuilder |
createEntryBuilder(java.lang.String message)
Creates a new device message queue entry builder with the given message.
|
java.lang.String |
dequeue(java.lang.String path)
Dequeue message
|
DeviceMessageQueue.Entry |
dequeueDeliverableEntry(java.lang.String path)
Dequeue message and payload to be delivered.
|
DeviceMessageQueue.Entry |
dequeueEntry(java.lang.String path)
Dequeue message and payload
|
java.util.List<DeviceMessageQueue.Entry> |
getEntriesRequiringAck(java.lang.String path)
Get entities for a device that require ack
|
void |
markAcknowledged(java.lang.String path,
java.lang.String message)
Mark the entry containing the message as acknowledged
|
void |
markDeliveredOrRemove(java.lang.String path,
java.lang.String message)
Mark the entry containing the message as delivered and, if not requiring acknowledgement or already acknowledged, remove it from the queue given by the path
|
void |
queue(java.lang.String path,
java.lang.String message)
Queue message
|
void |
queue(java.lang.String path,
java.lang.String message,
boolean requiresAck)
Queue message
|
void |
queueEntry(java.lang.String path,
DeviceMessageQueue.Entry entry)
Queue message and payload
|
void |
remove(java.lang.String path,
java.lang.String message)
Remove the specified message from the queue defined by the path
|
void queueEntry(java.lang.String path, DeviceMessageQueue.Entry entry)
path
- The path of the resource that this message belongs.entry
- The message queue entry.DeviceMessageQueue.Entry dequeueEntry(java.lang.String path)
path
- The path of the resource that this message belongs.null
if the queue is empty.DeviceMessageQueue.EntryBuilder createEntryBuilder(java.lang.String message)
message
- the message for the entry.void queue(java.lang.String path, java.lang.String message)
path
- The path of the resource that this message belongs.message
- A simple message with no payload.void queue(java.lang.String path, java.lang.String message, boolean requiresAck)
path
- The path of the resource that this message belongs.message
- A simple message with no payload.requiresAck
- Whether acknowledgement for the message is required.java.lang.String dequeue(java.lang.String path)
path
- The path of the resource that this message belongs.null
if the queue is empty.java.util.List<DeviceMessageQueue.Entry> getEntriesRequiringAck(java.lang.String path)
path
- The path of the resource that this message belongs.void remove(java.lang.String path, java.lang.String message)
path
- The path of the resource that this message belongs.message
- The specific message to remove.DeviceMessageQueue.Entry dequeueDeliverableEntry(java.lang.String path)
path
- The path of the resource that this message belongs.null
if none is found.void markDeliveredOrRemove(java.lang.String path, java.lang.String message)
path
- The path of the resource that this message belongs.message
- The message for which to handle delivery.void markAcknowledged(java.lang.String path, java.lang.String message)
path
- The path of the resource that this message belongs.message
- The message to mark acknowledged."Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"