public interface MessageApi
Modifier and Type | Method and Description |
---|---|
MessagesCreated |
create(List<CreateMessage> messages)
Create message(s) on a queue.
|
boolean |
delete(Iterable<String> ids)
Deletes specific messages.
|
boolean |
deleteByClaim(String id,
String claimId)
The claimId parameter specifies that the message is deleted only if it has the specified claim ID and that claim
has not expired.
|
Message |
get(String id)
Gets a specific message.
|
List<Message> |
list(Iterable<String> ids)
Lists specific messages.
|
MessageStream |
stream(StreamMessagesOptions... options)
Streams the messages off of a queue.
|
@Named(value="message:create") MessagesCreated create(List<CreateMessage> messages)
messages
- The messages created on the queue. The number of messages allowed in one request are configurable
by your cloud provider. Consult your cloud provider documentation to learn the maximum.@Named(value="message:stream") MessageStream stream(StreamMessagesOptions... options)
options
- Options for streaming messages to your client.@Named(value="message:list") List<Message> list(Iterable<String> ids)
ids
- Specifies the IDs of the messages to list.@Named(value="message:get") @Nullable Message get(String id)
id
- Specific ID of the message to get.@Named(value="message:delete") boolean delete(Iterable<String> ids)
ids
- Specifies the IDs of the messages to delete.@Named(value="message:delete") boolean deleteByClaim(String id, String claimId)
id
- Specific ID of the message to delete.claimId
- Specific claim ID of the message to delete.Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.