Class BatchSummary
java.lang.Object
com.helixframework.api.contract.batch.BatchSummary
Represents a summary of a batch response.
The BatchSummary class contains the total number of items, the number of successful items, and the number
of failed items in the batch.
-
Constructor Summary
ConstructorsConstructorDescriptionBatchSummary(long total, long success, long failed) Represents a summary of a batch response. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the number of failed items in the batch summary.longReturns the number of successful items in a batch response summary.longgetTotal()Returns the total count of items.
-
Constructor Details
-
BatchSummary
public BatchSummary(long total, long success, long failed) Represents a summary of a batch response. The BatchSummary class contains the total number of items, the number of successful items, and the number of failed items in the batch.- Parameters:
total- The total count of items.success- The number of successful items.failed- The number of failed items.
-
-
Method Details
-
getTotal
public long getTotal()Returns the total count of items.- Returns:
- the total count of items
-
getSuccess
public long getSuccess()Returns the number of successful items in a batch response summary.- Returns:
- the number of successful items
-
getFailed
public long getFailed()Returns the number of failed items in the batch summary.- Returns:
- the number of failed items
-