Package net.bytebuddy.agent.builder
Enum AgentBuilder.RedefinitionStrategy.Listener.ErrorEscalating
- java.lang.Object
-
- java.lang.Enum<AgentBuilder.RedefinitionStrategy.Listener.ErrorEscalating>
-
- net.bytebuddy.agent.builder.AgentBuilder.RedefinitionStrategy.Listener.ErrorEscalating
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AgentBuilder.RedefinitionStrategy.Listener.ErrorEscalating>
,AgentBuilder.RedefinitionStrategy.Listener
- Enclosing interface:
- AgentBuilder.RedefinitionStrategy.Listener
public static enum AgentBuilder.RedefinitionStrategy.Listener.ErrorEscalating extends java.lang.Enum<AgentBuilder.RedefinitionStrategy.Listener.ErrorEscalating> implements AgentBuilder.RedefinitionStrategy.Listener
A listener that halts a retransformation process upon an exception.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.agent.builder.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
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ErrorEscalating()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onBatch(int index, java.util.List<java.lang.Class<?>> batch, java.util.List<java.lang.Class<?>> types)
Invoked before applying a batch.static AgentBuilder.RedefinitionStrategy.Listener.ErrorEscalating
valueOf(java.lang.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.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface net.bytebuddy.agent.builder.AgentBuilder.RedefinitionStrategy.Listener
onComplete, onError
-
-
-
-
Enum Constant Detail
-
FAIL_FAST
public static final AgentBuilder.RedefinitionStrategy.Listener.ErrorEscalating FAIL_FAST
A listener that fails the retransformation upon the first failed retransformation of a batch.
-
FAIL_LAST
public static final AgentBuilder.RedefinitionStrategy.Listener.ErrorEscalating FAIL_LAST
A listener that fails the retransformation after all batches were executed if any error occurred.
-
-
Method Detail
-
values
public static AgentBuilder.RedefinitionStrategy.Listener.ErrorEscalating[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AgentBuilder.RedefinitionStrategy.Listener.ErrorEscalating c : AgentBuilder.RedefinitionStrategy.Listener.ErrorEscalating.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AgentBuilder.RedefinitionStrategy.Listener.ErrorEscalating valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
onBatch
public void onBatch(int index, java.util.List<java.lang.Class<?>> batch, java.util.List<java.lang.Class<?>> types)
Invoked before applying a batch.- Specified by:
onBatch
in interfaceAgentBuilder.RedefinitionStrategy.Listener
- Parameters:
index
- A running index of the batch starting at0
.batch
- The types included in this batch.types
- All types included in the redefinition.
-
-