public class DeadLetterPolicy extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| DeadLetterPolicy() | 
| DeadLetterPolicy(DeadLetterPolicy source)NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getDeadLetterQueue()Get 死信队列。 | 
| String | getDeadLetterQueueName()Get 死信队列名字。 | 
| Long | getMaxReceiveCount()Get 最大接收次数。 | 
| Long | getMaxTimeToLive()Get 最大未消费过期时间。Policy为1时必选。范围300-43200,单位秒,需要小于消息最大保留时间MsgRetentionSeconds。 | 
| Long | getPolicy()Get 死信队列策略。 | 
| void | setDeadLetterQueue(String DeadLetterQueue)Set 死信队列。 | 
| void | setDeadLetterQueueName(String DeadLetterQueueName)Set 死信队列名字。 | 
| void | setMaxReceiveCount(Long MaxReceiveCount)Set 最大接收次数。 | 
| void | setMaxTimeToLive(Long MaxTimeToLive)Set 最大未消费过期时间。Policy为1时必选。范围300-43200,单位秒,需要小于消息最大保留时间MsgRetentionSeconds。 | 
| void | setPolicy(Long Policy)Set 死信队列策略。 | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic DeadLetterPolicy()
public DeadLetterPolicy(DeadLetterPolicy source)
public String getDeadLetterQueue()
public void setDeadLetterQueue(String DeadLetterQueue)
DeadLetterQueue - 死信队列。public String getDeadLetterQueueName()
public void setDeadLetterQueueName(String DeadLetterQueueName)
DeadLetterQueueName - 死信队列名字。public Long getMaxTimeToLive()
public void setMaxTimeToLive(Long MaxTimeToLive)
MaxTimeToLive - 最大未消费过期时间。Policy为1时必选。范围300-43200,单位秒,需要小于消息最大保留时间MsgRetentionSeconds。public Long getPolicy()
public void setPolicy(Long Policy)
Policy - 死信队列策略。public Long getMaxReceiveCount()
public void setMaxReceiveCount(Long MaxReceiveCount)
MaxReceiveCount - 最大接收次数。Copyright © 2025. All rights reserved.