C# Класс HdrHistogram.HistogramFactory

Provides factory methods to define the features of your histogram.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Create ( ) : HistogramBase

Creates the histogram as configured by this factory instance.

Create ( long lowestDiscernibleValue, long highestTrackableValue, int numberOfSignificantValueDigits ) : HistogramBase

A factory-method to create the Histogram.

Create ( long instanceId, long lowestDiscernibleValue, long highestTrackableValue, int numberOfSignificantValueDigits ) : HistogramBase

A factory-method to create the Histogram.

With16BitBucketSize ( ) : HistogramFactory

Specify that the Histogram should be able to record count values in the 32bit range.

With32BitBucketSize ( ) : HistogramFactory

Specify that the Histogram should be able to record count values in the 32bit range.

With64BitBucketSize ( ) : HistogramFactory

Specify that the Histogram should be able to record count values in the 64bit range.

WithPrecisionOf ( int numberOfSignificantValueDigits ) : HistogramFactory

Specifies the number of significant figures that the Histogram should record.

WithThreadSafeReads ( ) : RecorderFactory

Specifies that the consumer will need to be able to read Histogram values in a thread safe manner. This will mean Recorder will be used to wrap the Histogram, allowing thread safe reads.

WithThreadSafeWrites ( ) : HistogramFactory

Specifies that the Histogram to be created should be thread safe when written to from multiple threads.

WithValuesFrom ( long lowestDiscernibleValue ) : HistogramFactory

Specifies the lowest value the Histogram should be configured to record.

WithValuesUpTo ( long highestTrackableValue ) : HistogramFactory

Specifies the highest value the Histogram should be configured to record.

Приватные методы

Метод Описание
HistogramFactory ( ) : System

Private constructor to force usage via the Static starter methods.

Описание методов

Create() публичный Метод

Creates the histogram as configured by this factory instance.
public Create ( ) : HistogramBase
Результат HistogramBase

Create() публичный абстрактный Метод

A factory-method to create the Histogram.
public abstract Create ( long lowestDiscernibleValue, long highestTrackableValue, int numberOfSignificantValueDigits ) : HistogramBase
lowestDiscernibleValue long /// The lowest value that can be tracked (distinguished from 0) by the histogram. /// Must be a positive integer that is >= 1. /// May be internally rounded down to nearest power of 2. ///
highestTrackableValue long The highest value to be tracked by the histogram. Must be a positive integer that is >= (2 * ).
numberOfSignificantValueDigits int The number of significant decimal digits to which the histogram will maintain value resolution and separation. /// Must be a non-negative integer between 0 and 5. ///
Результат HistogramBase

Create() публичный абстрактный Метод

A factory-method to create the Histogram.
public abstract Create ( long instanceId, long lowestDiscernibleValue, long highestTrackableValue, int numberOfSignificantValueDigits ) : HistogramBase
instanceId long An identifier for this instance.
lowestDiscernibleValue long /// The lowest value that can be tracked (distinguished from 0) by the histogram. /// Must be a positive integer that is >= 1. /// May be internally rounded down to nearest power of 2. ///
highestTrackableValue long The highest value to be tracked by the histogram. Must be a positive integer that is >= (2 * ).
numberOfSignificantValueDigits int The number of significant decimal digits to which the histogram will maintain value resolution and separation. /// Must be a non-negative integer between 0 and 5. ///
Результат HistogramBase

With16BitBucketSize() публичный статический Метод

Specify that the Histogram should be able to record count values in the 32bit range.
public static With16BitBucketSize ( ) : HistogramFactory
Результат HistogramFactory

With32BitBucketSize() публичный статический Метод

Specify that the Histogram should be able to record count values in the 32bit range.
public static With32BitBucketSize ( ) : HistogramFactory
Результат HistogramFactory

With64BitBucketSize() публичный статический Метод

Specify that the Histogram should be able to record count values in the 64bit range.
public static With64BitBucketSize ( ) : HistogramFactory
Результат HistogramFactory

WithPrecisionOf() публичный Метод

Specifies the number of significant figures that the Histogram should record.
public WithPrecisionOf ( int numberOfSignificantValueDigits ) : HistogramFactory
numberOfSignificantValueDigits int /// The number of significant decimal digits to which the histogram will maintain value resolution and separation. /// Must be a non-negative integer between 0 and 5. ///
Результат HistogramFactory

WithThreadSafeReads() публичный абстрактный Метод

Specifies that the consumer will need to be able to read Histogram values in a thread safe manner. This will mean Recorder will be used to wrap the Histogram, allowing thread safe reads.
public abstract WithThreadSafeReads ( ) : RecorderFactory
Результат RecorderFactory

WithThreadSafeWrites() публичный абстрактный Метод

Specifies that the Histogram to be created should be thread safe when written to from multiple threads.
public abstract WithThreadSafeWrites ( ) : HistogramFactory
Результат HistogramFactory

WithValuesFrom() публичный Метод

Specifies the lowest value the Histogram should be configured to record.
public WithValuesFrom ( long lowestDiscernibleValue ) : HistogramFactory
lowestDiscernibleValue long /// The lowest value that can be tracked (distinguished from 0) by the histogram. /// Must be a positive integer that is >= 1. /// May be internally rounded down to nearest power of 2. ///
Результат HistogramFactory

WithValuesUpTo() публичный Метод

Specifies the highest value the Histogram should be configured to record.
public WithValuesUpTo ( long highestTrackableValue ) : HistogramFactory
highestTrackableValue long /// The highest value to be tracked by the histogram. Must be a positive integer that is >= (2 * ). ///
Результат HistogramFactory