public static enum Counter.Type extends Enum<Counter.Type>
| Enum Constant and Description |
|---|
CPU_TIME
The total time spent using a CPU for the current thread
|
SYSTEM_TIME
The time spent by the kernel to execute system level operations on behalf of the
application
|
USER_TIME
The total CPU time that the current thread has executed in user mode
|
WALL_CLOCK_TIME
The elapsed time experienced by a user waiting for a task to complete
|
| Modifier and Type | Method and Description |
|---|---|
abstract long |
defaultDataFetchStrategy(TimeUnit targetTimeUnit)
Executes default data fetch strategy for the specific type.
|
String |
toString() |
static Counter.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Counter.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Counter.Type WALL_CLOCK_TIME
public static final Counter.Type CPU_TIME
public static final Counter.Type USER_TIME
public static final Counter.Type SYSTEM_TIME
public static Counter.Type[] values()
for (Counter.Type c : Counter.Type.values()) System.out.println(c);
public static Counter.Type 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 nullpublic String toString()
toString in class Enum<Counter.Type>public abstract long defaultDataFetchStrategy(TimeUnit targetTimeUnit)
targetTimeUnit - the time unit in which the data will be returnedCopyright © 2019. All rights reserved.