Skip to content

Commit

Permalink
add config.
Browse files Browse the repository at this point in the history
  • Loading branch information
GenerousMan committed Oct 25, 2023
1 parent 8b75170 commit c909a98
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions common/src/main/java/org/apache/rocketmq/common/BrokerConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,8 @@ public class BrokerConfig extends BrokerIdentity {
@ImportantField
private long transactionCheckInterval = 30 * 1000;

private long transactionMetricFlushInterval = 3 * 1000;

/**
* transaction batch op message
*/
Expand Down Expand Up @@ -1755,4 +1757,12 @@ public int getSplitRegistrationSize() {
public void setSplitRegistrationSize(int splitRegistrationSize) {
this.splitRegistrationSize = splitRegistrationSize;
}

public long getTransactionMetricFlushInterval() {
return transactionMetricFlushInterval;
}

public void setTransactionMetricFlushInterval(long transactionMetricFlushInterval) {
this.transactionMetricFlushInterval = transactionMetricFlushInterval;
}
}

0 comments on commit c909a98

Please sign in to comment.