Search in sources :

Example 6 with MediaQueueRequest

use of com.qcloud.cos.model.ciModel.queue.MediaQueueRequest in project cos-java-sdk-v5 by tencentyun.

the class QueueDemo method describeMediaQueues.

/**
 * DescribeMediaQueues 接口用于搜索队列。
 * @param client
 */
public static void describeMediaQueues(COSClient client) {
    // 1.创建队列请求对象
    MediaQueueRequest request = new MediaQueueRequest();
    // 2.添加请求参数 参数详情请见api接口文档
    request.setBucketName("DemoBucket-123456789");
    // 3.调用接口,获取队列响应对象
    MediaListQueueResponse response = client.describeMediaQueues(request);
    System.out.println(response);
}
Also used : MediaQueueRequest(com.qcloud.cos.model.ciModel.queue.MediaQueueRequest) MediaListQueueResponse(com.qcloud.cos.model.ciModel.queue.MediaListQueueResponse)

Aggregations

MediaQueueRequest (com.qcloud.cos.model.ciModel.queue.MediaQueueRequest)6 MediaListQueueResponse (com.qcloud.cos.model.ciModel.queue.MediaListQueueResponse)5 Test (org.junit.Test)4 MediaJobObject (com.qcloud.cos.model.ciModel.job.MediaJobObject)2 MediaJobsRequest (com.qcloud.cos.model.ciModel.job.MediaJobsRequest)2 MediaListJobResponse (com.qcloud.cos.model.ciModel.job.MediaListJobResponse)2 MediaQueueResponse (com.qcloud.cos.model.ciModel.queue.MediaQueueResponse)2 MediaJobResponse (com.qcloud.cos.model.ciModel.job.MediaJobResponse)1 MediaQueueObject (com.qcloud.cos.model.ciModel.queue.MediaQueueObject)1