SplitParallelSampleBandwidthEstimator.Builder


public class SplitParallelSampleBandwidthEstimator.Builder


A builder to create SplitParallelSampleBandwidthEstimator instances.

Summary

Public constructors

Creates a new builder instance.

Public methods

SplitParallelSampleBandwidthEstimator
SplitParallelSampleBandwidthEstimator.Builder

Sets the BandwidthStatistic to be used by the estimator.

SplitParallelSampleBandwidthEstimator.Builder
@CanIgnoreReturnValue
setMinBytesTransferred(long minBytesTransferred)

Sets a minimum threshold of bytes that need to be transferred before the estimator can return a bandwidth estimate.

SplitParallelSampleBandwidthEstimator.Builder

Sets a minimum threshold of samples that need to be taken before the estimator can return a bandwidth estimate.

Public constructors

Builder

public Builder()

Creates a new builder instance.

Public methods

setBandwidthStatistic

@CanIgnoreReturnValue
public SplitParallelSampleBandwidthEstimator.Builder setBandwidthStatistic(BandwidthStatistic bandwidthStatistic)

Sets the BandwidthStatistic to be used by the estimator. By default, this is set to a SlidingWeightedAverageBandwidthStatistic.

Parameters
BandwidthStatistic bandwidthStatistic

The BandwidthStatistic.

Returns
SplitParallelSampleBandwidthEstimator.Builder

This builder for convenience.

setMinBytesTransferred

@CanIgnoreReturnValue
public SplitParallelSampleBandwidthEstimator.Builder setMinBytesTransferred(long minBytesTransferred)

Sets a minimum threshold of bytes that need to be transferred before the estimator can return a bandwidth estimate. By default, this is set to 0.

Parameters
long minBytesTransferred

The minimum number of transferred bytes.

Returns
SplitParallelSampleBandwidthEstimator.Builder

This builder for convenience.

setMinSamples

@CanIgnoreReturnValue
public SplitParallelSampleBandwidthEstimator.Builder setMinSamples(int minSamples)

Sets a minimum threshold of samples that need to be taken before the estimator can return a bandwidth estimate. By default, this is set to 0.

Parameters
int minSamples

The minimum number of samples.

Returns
SplitParallelSampleBandwidthEstimator.Builder

This builder for convenience.