public class TransactionConfig extends Object implements Serializable
| 限定符和类型 | 字段和说明 |
|---|---|
static Integer |
MINIMUM_DISCARD_RATE |
static Integer |
MINIMUM_FAILURE_RATE |
| 构造器和说明 |
|---|
TransactionConfig() |
| 限定符和类型 | 方法和说明 |
|---|---|
Integer |
getDiscardRate()
最多可存储丢弃事务的容量倍率,相比txnCapacity的倍率,默认为5,不可低于5
|
Integer |
getFailureRate()
最多可存储失败事务的容量倍率,相比txnCapacity的倍率,默认为5,不可低于5
|
Integer |
getRetryCount()
事务失败的重试次数
|
Integer |
getTxnTimeout()
事务超时时间
|
boolean |
isOpenRetry()
是否开启,超时或者事件消费异常的重试机制,默认不开启
|
void |
setDiscardRate(Integer discardRate)
最多可存储丢弃事务的容量倍率,相比txnCapacity的倍率,默认为5,不可低于5
|
void |
setFailureRate(Integer failureRate)
最多可存储失败事务的容量倍率,相比txnCapacity的倍率,默认为5,不可低于5
|
void |
setOpenRetry(boolean openRetry)
是否开启,超时或者事件消费异常的重试机制
|
void |
setRetryCount(Integer retryCount)
事务失败的重试次数
|
void |
setTxnTimeout(Integer txnTimeout)
事务超时时间
|
public static final Integer MINIMUM_FAILURE_RATE
public static final Integer MINIMUM_DISCARD_RATE
public Integer getFailureRate()
public void setFailureRate(Integer failureRate)
failureRate - public Integer getDiscardRate()
public void setDiscardRate(Integer discardRate)
discardRate - public Integer getRetryCount()
public void setRetryCount(Integer retryCount)
retryCount - public Integer getTxnTimeout()
public void setTxnTimeout(Integer txnTimeout)
txnTimeout - public boolean isOpenRetry()
public void setOpenRetry(boolean openRetry)
openRetry - Copyright © 2018 Jue Ming. All rights reserved.