public static enum AgentBuilder.RedefinitionStrategy.Listener.ErrorEscalating extends Enum<AgentBuilder.RedefinitionStrategy.Listener.ErrorEscalating> implements AgentBuilder.RedefinitionStrategy.Listener
AgentBuilder.RedefinitionStrategy.Listener.Adapter, AgentBuilder.RedefinitionStrategy.Listener.BatchReallocator, AgentBuilder.RedefinitionStrategy.Listener.Compound, AgentBuilder.RedefinitionStrategy.Listener.ErrorEscalating, AgentBuilder.RedefinitionStrategy.Listener.NoOp, AgentBuilder.RedefinitionStrategy.Listener.Pausing, AgentBuilder.RedefinitionStrategy.Listener.StreamWriting, AgentBuilder.RedefinitionStrategy.Listener.Yielding| Enum Constant and Description |
|---|
FAIL_FAST
A listener that fails the retransformation upon the first failed retransformation of a batch.
|
FAIL_LAST
A listener that fails the retransformation after all batches were executed if any error occurred.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onBatch(int index,
List<Class<?>> batch,
List<Class<?>> types)
Invoked before applying a batch.
|
static AgentBuilder.RedefinitionStrategy.Listener.ErrorEscalating |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AgentBuilder.RedefinitionStrategy.Listener.ErrorEscalating[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfonComplete, onErrorpublic static final AgentBuilder.RedefinitionStrategy.Listener.ErrorEscalating FAIL_FAST
public static final AgentBuilder.RedefinitionStrategy.Listener.ErrorEscalating FAIL_LAST
public static AgentBuilder.RedefinitionStrategy.Listener.ErrorEscalating[] values()
for (AgentBuilder.RedefinitionStrategy.Listener.ErrorEscalating c : AgentBuilder.RedefinitionStrategy.Listener.ErrorEscalating.values()) System.out.println(c);
public static AgentBuilder.RedefinitionStrategy.Listener.ErrorEscalating 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 void onBatch(int index,
List<Class<?>> batch,
List<Class<?>> types)
onBatch in interface AgentBuilder.RedefinitionStrategy.Listenerindex - A running index of the batch starting at 0.batch - The types included in this batch.types - All types included in the redefinition.Copyright © 2014–2025. All rights reserved.