public class BlockOperationResult extends Object
BlockOperationType
enum.Constructor and Description |
---|
BlockOperationResult()
Creates an empty operation result.
|
BlockOperationResult(int opCount,
int failCount,
int backOffCount)
Creates an operation result.
|
Modifier and Type | Method and Description |
---|---|
int |
backOffCount() |
int |
failCount() |
BlockOperationResult |
mergeWith(BlockOperationResult otherResult)
Merges result counters of this result with the given result.
|
int |
opCount() |
String |
toString() |
public BlockOperationResult()
public BlockOperationResult(int opCount, int failCount, int backOffCount)
opCount
- operation countfailCount
- failure countbackOffCount
- back-off countpublic BlockOperationResult mergeWith(BlockOperationResult otherResult)
otherResult
- the result to merge withpublic int opCount()
public int failCount()
public int backOffCount()
Copyright © 2023. All Rights Reserved.