public enum TraceLevel extends Enum<TraceLevel>
For tracing to work, you need to look at MultiverseConstants.TRACING_ENABLED
. If not enabled,
the JIT will remove dead code because we don't want any overhead.
TxnFactoryBuilder.setTraceLevel(TraceLevel)
,
TxnConfig.getTraceLevel()
Modifier and Type | Method and Description |
---|---|
boolean |
isLoggableFrom(TraceLevel level)
Checks if the provided level is higher than this TraceLevel.
|
static TraceLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TraceLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TraceLevel None
public static final TraceLevel Coarse
public static TraceLevel[] values()
for (TraceLevel c : TraceLevel.values()) System.out.println(c);
public static TraceLevel 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 boolean isLoggableFrom(TraceLevel level)
level
- the TraceLevel to checkNullPointerException
- if level is null.Copyright © 2020. All rights reserved.