142 lines
5.8 KiB
C#
142 lines
5.8 KiB
C#
|
|
/*
|
|||
|
|
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|||
|
|
*
|
|||
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|||
|
|
* you may not use this file except in compliance with the License.
|
|||
|
|
* You may obtain a copy of the License at
|
|||
|
|
*
|
|||
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|||
|
|
*
|
|||
|
|
* Unless required by applicable law or agreed to in writing,
|
|||
|
|
* software distributed under the License is distributed on an
|
|||
|
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|||
|
|
* KIND, either express or implied. See the License for the
|
|||
|
|
* specific language governing permissions and limitations
|
|||
|
|
* under the License.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
namespace TencentCloud.Cmq.V20190304.Models
|
|||
|
|
{
|
|||
|
|
using Newtonsoft.Json;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using TencentCloud.Common;
|
|||
|
|
|
|||
|
|
public class CreateQueueRequest : AbstractModel
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 队列名字,在单个地域同一帐号下唯一。队列名称是一个不超过 64 个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)。
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("QueueName")]
|
|||
|
|
public string QueueName{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 最大堆积消息数。取值范围在公测期间为 1,000,000 - 10,000,000,正式上线后范围可达到 1000,000-1000,000,000。默认取值在公测期间为 10,000,000,正式上线后为 100,000,000。
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("MaxMsgHeapNum")]
|
|||
|
|
public ulong? MaxMsgHeapNum{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 消息接收长轮询等待时间。取值范围 0-30 秒,默认值 0。
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("PollingWaitSeconds")]
|
|||
|
|
public ulong? PollingWaitSeconds{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 消息可见性超时。取值范围 1-43200 秒(即12小时内),默认值 30。
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("VisibilityTimeout")]
|
|||
|
|
public ulong? VisibilityTimeout{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 消息最大长度。取值范围 1024-65536 Byte(即1-64K),默认值 65536。
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("MaxMsgSize")]
|
|||
|
|
public ulong? MaxMsgSize{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 消息保留周期。取值范围 60-1296000 秒(1min-15天),默认值 345600 (4 天)。
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("MsgRetentionSeconds")]
|
|||
|
|
public ulong? MsgRetentionSeconds{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 队列是否开启回溯消息能力,该参数取值范围0-msgRetentionSeconds,即最大的回溯时间为消息在队列中的保留周期,0表示不开启。
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("RewindSeconds")]
|
|||
|
|
public ulong? RewindSeconds{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 1 表示事务队列,0 表示普通队列
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("Transaction")]
|
|||
|
|
public ulong? Transaction{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 第一次回查间隔
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("FirstQueryInterval")]
|
|||
|
|
public ulong? FirstQueryInterval{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 最大回查次数
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("MaxQueryCount")]
|
|||
|
|
public ulong? MaxQueryCount{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 死信队列名称
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("DeadLetterQueueName")]
|
|||
|
|
public string DeadLetterQueueName{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 死信策略。0为消息被多次消费未删除,1为Time-To-Live过期
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("Policy")]
|
|||
|
|
public ulong? Policy{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 最大接收次数 1-1000
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("MaxReceiveCount")]
|
|||
|
|
public ulong? MaxReceiveCount{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// policy为1时必选。最大未消费过期时间。范围300-43200,单位秒,需要小于消息最大保留时间msgRetentionSeconds
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("MaxTimeToLive")]
|
|||
|
|
public ulong? MaxTimeToLive{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 是否开启消息轨迹追踪,当不设置字段时,默认为不开启,该字段为true表示开启,为false表示不开启
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("Trace")]
|
|||
|
|
public bool? Trace{ get; set; }
|
|||
|
|
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// For internal usage only. DO NOT USE IT.
|
|||
|
|
/// </summary>
|
|||
|
|
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
|||
|
|
{
|
|||
|
|
this.SetParamSimple(map, prefix + "QueueName", this.QueueName);
|
|||
|
|
this.SetParamSimple(map, prefix + "MaxMsgHeapNum", this.MaxMsgHeapNum);
|
|||
|
|
this.SetParamSimple(map, prefix + "PollingWaitSeconds", this.PollingWaitSeconds);
|
|||
|
|
this.SetParamSimple(map, prefix + "VisibilityTimeout", this.VisibilityTimeout);
|
|||
|
|
this.SetParamSimple(map, prefix + "MaxMsgSize", this.MaxMsgSize);
|
|||
|
|
this.SetParamSimple(map, prefix + "MsgRetentionSeconds", this.MsgRetentionSeconds);
|
|||
|
|
this.SetParamSimple(map, prefix + "RewindSeconds", this.RewindSeconds);
|
|||
|
|
this.SetParamSimple(map, prefix + "Transaction", this.Transaction);
|
|||
|
|
this.SetParamSimple(map, prefix + "FirstQueryInterval", this.FirstQueryInterval);
|
|||
|
|
this.SetParamSimple(map, prefix + "MaxQueryCount", this.MaxQueryCount);
|
|||
|
|
this.SetParamSimple(map, prefix + "DeadLetterQueueName", this.DeadLetterQueueName);
|
|||
|
|
this.SetParamSimple(map, prefix + "Policy", this.Policy);
|
|||
|
|
this.SetParamSimple(map, prefix + "MaxReceiveCount", this.MaxReceiveCount);
|
|||
|
|
this.SetParamSimple(map, prefix + "MaxTimeToLive", this.MaxTimeToLive);
|
|||
|
|
this.SetParamSimple(map, prefix + "Trace", this.Trace);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|