Package net.bytebuddy.agent.builder
Enum Class 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:
Serializable
,Comparable<AgentBuilder.RedefinitionStrategy.Listener.ErrorEscalating>
,Constable
,AgentBuilder.RedefinitionStrategy.Listener
- Enclosing interface:
- AgentBuilder.RedefinitionStrategy.Listener
public static enum AgentBuilder.RedefinitionStrategy.Listener.ErrorEscalating
extends 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 class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
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
-
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Invoked before applying a batch.Returns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface net.bytebuddy.agent.builder.AgentBuilder.RedefinitionStrategy.Listener
onComplete, onError
-
Enum Constant Details
-
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.
-
-
Constructor Details
-
ErrorEscalating
private ErrorEscalating()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
onBatch
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.
-