@Consumes(value="application/json")
@Path(value="/queue")
public interface QueueApi
Modifier and Type | Method and Description |
---|---|
RequestStatus |
cancel(int id)
Cancel a queue item before it gets built.
|
java.util.List<QueueItem> |
queue() |
QueueItem |
queueItem(int queueId)
Get a specific queue item.
|
@Named(value="queue:queue") @Path(value="/api/json") @GET java.util.List<QueueItem> queue()
@Named(value="queue:item") @Path(value="/item/{queueId}/api/json") @GET QueueItem queueItem(@PathParam(value="queueId") int queueId)
queueId
- The queue id value as returned by the JobsApi build or buildWithParameters methods.@Named(value="queue:cancel") @Path(value="/cancelItem") @POST RequestStatus cancel(@FormParam(value="id") int id)
id
- The queue id value of the queue item to cancel.
This is the value is returned by the JobsApi build or buildWithParameters methods.