Search in sources :

Example 1 with TaskQueuePurgeQueueResponse

use of com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueuePurgeQueueResponse in project appengine-java-standard by GoogleCloudPlatform.

the class LocalTaskQueue method purgeQueue.

/**
 * PurgeQueue RPC implementation.
 */
@LatencyPercentiles(latency50th = 3)
public TaskQueuePurgeQueueResponse purgeQueue(Status status, TaskQueuePurgeQueueRequest purgeQueueRequest) {
    TaskQueuePurgeQueueResponse purgeQueueResponse = TaskQueuePurgeQueueResponse.getDefaultInstance();
    flushQueue(purgeQueueRequest.getQueueName().toStringUtf8());
    return purgeQueueResponse;
}
Also used : TaskQueuePurgeQueueResponse(com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueuePurgeQueueResponse) LatencyPercentiles(com.google.appengine.tools.development.LatencyPercentiles)

Aggregations

TaskQueuePurgeQueueResponse (com.google.appengine.api.taskqueue.TaskQueuePb.TaskQueuePurgeQueueResponse)1 LatencyPercentiles (com.google.appengine.tools.development.LatencyPercentiles)1