@Consumes(value="application/json")
@Path(value="/queues")
public interface QueueApi
| Modifier and Type | Method and Description |
|---|---|
void |
create(String name)
Create a queue.
|
boolean |
delete(String name)
Delete a queue.
|
boolean |
exists(String name)
Check for a queue's existence.
|
Map<String,String> |
getMetadata(String name)
Gets metadata for the specified queue.
|
QueueStats |
getStats(String name)
Gets stats for the specified queue.
|
PagedIterable<Queue> |
list(boolean detailed)
Lists the queues.
|
Queues |
list(ListQueuesOptions options)
Use this method to manually page through the list of queues.
|
void |
setMetadata(String name,
Map<String,String> metadata)
Sets metadata for the specified queue.
|
@Named(value="queue:create")
@PUT
@Path(value="/{name}")
void create(@PathParam(value="name")
String name)
name - Name of the queue. The name must not exceed 64 bytes in length, and it is limited to US-ASCII
letters, digits, underscores, and hyphens.@Named(value="queue:delete")
@DELETE
@Path(value="/{name}")
boolean delete(@PathParam(value="name")
String name)
name - Name of the queue. The name must not exceed 64 bytes in length, and it is limited to US-ASCII
letters, digits, underscores, and hyphens.@Named(value="queue:get")
@GET
@Path(value="/{name}")
boolean exists(@PathParam(value="name")
String name)
name - Name of the queue. The name must not exceed 64 bytes in length, and it is limited to US-ASCII
letters, digits, underscores, and hyphens.@Named(value="queue:list") @GET PagedIterable<Queue> list(@QueryParam(value="detailed") boolean detailed)
detailed - Determines whether queue metadata is included in the list.@Named(value="queue:list") @GET Queues list(ListQueuesOptions options)
@Named(value="queue:setMetadata")
@PUT
@Path(value="/{name}/metadata")
@Produces(value="application/json")
void setMetadata(@PathParam(value="name")
String name,
Map<String,String> metadata)
name - Name of the queue. The name must not exceed 64 bytes in length, and it is limited to US-ASCII
letters, digits, underscores, and hyphens.metadata - Metadata in key/value pairs.@Named(value="queue:getMetadata")
@GET
@Path(value="/{name}/metadata")
Map<String,String> getMetadata(@PathParam(value="name")
String name)
name - Name of the queue. The name must not exceed 64 bytes in length, and it is limited to US-ASCII
letters, digits, underscores, and hyphens.@Named(value="queue:getStats")
@GET
@Path(value="/{name}/stats")
QueueStats getStats(@PathParam(value="name")
String name)
name - Name of the queue. The name must not exceed 64 bytes in length, and it is limited to US-ASCII
letters, digits, underscores, and hyphens.Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.