-
public final class BatchMetrics
-
-
Field Summary
Fields Modifier and Type Field Description private final BooleanisCompleteprivate final BooleanisBatchCompleteprivate final <ERROR CLASS>cumulativeItemsprivate final LongcumulativeTimeprivate final <ERROR CLASS>batchTimeprivate final <ERROR CLASS>batchItemsprivate final FloatbatchIpsprivate final FloatcumulativeIpsprivate final ClosedRange<BlockHeight>rangeprivate final IntegerbatchSize
-
Constructor Summary
Constructors Constructor Description BatchMetrics(ClosedRange<BlockHeight> range, Integer batchSize, Function2<BatchMetrics, Boolean, Unit> onMetricComplete)
-
Method Summary
Modifier and Type Method Description final BooleangetIsComplete()final BooleangetIsBatchComplete()final <ERROR CLASS>getCumulativeItems()final LonggetCumulativeTime()final <ERROR CLASS>getBatchTime()final <ERROR CLASS>getBatchItems()final FloatgetBatchIps()final FloatgetCumulativeIps()final ClosedRange<BlockHeight>getRange()final IntegergetBatchSize()final UnitbeginBatch()final UnitendBatch()-
-
Constructor Detail
-
BatchMetrics
BatchMetrics(ClosedRange<BlockHeight> range, Integer batchSize, Function2<BatchMetrics, Boolean, Unit> onMetricComplete)
-
-
Method Detail
-
getIsComplete
final Boolean getIsComplete()
-
getIsBatchComplete
final Boolean getIsBatchComplete()
-
getCumulativeItems
final <ERROR CLASS> getCumulativeItems()
-
getCumulativeTime
final Long getCumulativeTime()
-
getBatchTime
final <ERROR CLASS> getBatchTime()
-
getBatchItems
final <ERROR CLASS> getBatchItems()
-
getBatchIps
final Float getBatchIps()
-
getCumulativeIps
final Float getCumulativeIps()
-
getRange
final ClosedRange<BlockHeight> getRange()
-
getBatchSize
final Integer getBatchSize()
-
beginBatch
final Unit beginBatch()
-
-
-
-