-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[improve][txn] PIP-160 admin api coordinatorStats append batch info
- Loading branch information
1 parent
0fe4731
commit ca52cde
Showing
7 changed files
with
68 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
...admin-api/src/main/java/org/apache/pulsar/common/policies/data/TxnBufferedWriterStat.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package org.apache.pulsar.common.policies.data; | ||
|
||
import lombok.Data; | ||
|
||
@Data | ||
public class TxnBufferedWriterStat { | ||
|
||
/** Whether to enable the batch feature when writing to Bookie. **/ | ||
private boolean batchEnabled = false; | ||
|
||
/** If enabled the feature-batch, this attribute means maximum log records count in a batch. **/ | ||
private int batchedWriteMaxRecords = 512; | ||
|
||
/** If enabled the feature-batch, this attribute means bytes size in a batch. **/ | ||
private int batchedWriteMaxSize; | ||
|
||
/** | ||
* If enabled the feature-batch, this attribute means maximum wait time(in millis) for the first record in a batch. | ||
*/ | ||
private int batchedWriteMaxDelayInMillis; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters