public static enum HdrHistogram.ThreadSafetyMode extends Enum<HdrHistogram.ThreadSafetyMode>
ValueRecorder
implementation.Enum Constant and Description |
---|
CONCURRENT_READS
Used when writing to the histogram is done by a single thread, but reading from the histogram
can be done concurrently.
|
CONCURRENT_READS_AND_WRITES
Used when both reading from and writing to the histogram can be done concurrently.
|
UNSAFE
Used when both reading from and writing to the histogram is done by a single thread or is
synchronized externally.
|
Modifier and Type | Method and Description |
---|---|
static HdrHistogram.ThreadSafetyMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HdrHistogram.ThreadSafetyMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HdrHistogram.ThreadSafetyMode UNSAFE
Histogram
public static final HdrHistogram.ThreadSafetyMode CONCURRENT_READS
SingleWriterRecorder
public static final HdrHistogram.ThreadSafetyMode CONCURRENT_READS_AND_WRITES
Recorder
public static HdrHistogram.ThreadSafetyMode[] values()
for (HdrHistogram.ThreadSafetyMode c : HdrHistogram.ThreadSafetyMode.values()) System.out.println(c);
public static HdrHistogram.ThreadSafetyMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null