T - the actual type that this builder builds.public abstract class AbstractMetricsReportingExecutionListenerBuilder<T extends AbstractMetricsReportingExecutionListener> extends Object
AbstractMetricsReportingExecutionListener.public AbstractMetricsReportingExecutionListenerBuilder<T> extractingMetricsFrom(MetricsCollectingExecutionListener delegate)
If this method is not called, a newly-allocated MetricsCollectingExecutionListener
will be used.
delegate - the ReadsReportingExecutionListener to use as metrics source.this (for method chaining).public AbstractMetricsReportingExecutionListenerBuilder<T> expectingTotalEvents(long expectedTotal)
If this number is set, the reporter will also print a percentage of the overall progression.
expectedTotal - the total number of expected events.this (for method chaining)public AbstractMetricsReportingExecutionListenerBuilder<T> convertRatesTo(TimeUnit rateUnit)
rateUnit - a unit of time.this (for method chaining)public AbstractMetricsReportingExecutionListenerBuilder<T> convertDurationsTo(TimeUnit durationUnit)
durationUnit - a unit of time.this (for method chaining)public AbstractMetricsReportingExecutionListenerBuilder<T> withScheduler(ScheduledExecutorService scheduler)
If this method is not called, a default scheduler is created.
scheduler - the scheduler to use.this (for method chaining)public AbstractMetricsReportingExecutionListenerBuilder<T> withLogSink(LogSink sink)
LogSink to log messages.
If this method is not called, then a default log sink is used.
sink - the LogSink to use.this (for method chaining).public abstract T build()
AbstractMetricsReportingExecutionListener.AbstractMetricsReportingExecutionListener.Copyright © 2017–2021 DataStax. All rights reserved.