public static enum AgentBuilder.FallbackStrategy.Simple extends Enum<AgentBuilder.FallbackStrategy.Simple> implements AgentBuilder.FallbackStrategy
AgentBuilder.FallbackStrategy.ByThrowableType, AgentBuilder.FallbackStrategy.Simple| Enum Constant and Description |
|---|
DISABLED
A disabled fallback strategy that never attempts a new trial.
|
ENABLED
An enabled fallback strategy that always attempts a new trial.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isFallback(Class<?> type,
Throwable throwable)
Returns
true if the supplied type and throwable combination should result in a reattempt where the
loaded type is not used for querying information. |
static AgentBuilder.FallbackStrategy.Simple |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AgentBuilder.FallbackStrategy.Simple[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AgentBuilder.FallbackStrategy.Simple ENABLED
public static final AgentBuilder.FallbackStrategy.Simple DISABLED
public static AgentBuilder.FallbackStrategy.Simple[] values()
for (AgentBuilder.FallbackStrategy.Simple c : AgentBuilder.FallbackStrategy.Simple.values()) System.out.println(c);
public static AgentBuilder.FallbackStrategy.Simple 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 isFallback(Class<?> type, Throwable throwable)
true if the supplied type and throwable combination should result in a reattempt where the
loaded type is not used for querying information.isFallback in interface AgentBuilder.FallbackStrategytype - The loaded type that was queried during the transformation attempt.throwable - The error or exception that was caused during the transformation.true if the supplied type and throwable combination shouldCopyright © 2014–2025. All rights reserved.