public static enum AgentBuilder.RedefinitionStrategy.Listener.NoOp extends java.lang.Enum<AgentBuilder.RedefinitionStrategy.Listener.NoOp> 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 |
---|
INSTANCE
The singleton instance.
|
Modifier and Type | Method and Description |
---|---|
void |
onBatch(int index,
java.util.List<java.lang.Class<?>> batch,
java.util.List<java.lang.Class<?>> types)
Invoked before applying a batch.
|
void |
onComplete(int amount,
java.util.List<java.lang.Class<?>> types,
java.util.Map<java.util.List<java.lang.Class<?>>,java.lang.Throwable> failures)
Invoked upon completion of all batches.
|
java.lang.Iterable<? extends java.util.List<java.lang.Class<?>>> |
onError(int index,
java.util.List<java.lang.Class<?>> batch,
java.lang.Throwable throwable,
java.util.List<java.lang.Class<?>> types)
Invoked upon an error during a batch.
|
static AgentBuilder.RedefinitionStrategy.Listener.NoOp |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AgentBuilder.RedefinitionStrategy.Listener.NoOp[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AgentBuilder.RedefinitionStrategy.Listener.NoOp INSTANCE
public static AgentBuilder.RedefinitionStrategy.Listener.NoOp[] values()
for (AgentBuilder.RedefinitionStrategy.Listener.NoOp c : AgentBuilder.RedefinitionStrategy.Listener.NoOp.values()) System.out.println(c);
public static AgentBuilder.RedefinitionStrategy.Listener.NoOp valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic void onBatch(int index, java.util.List<java.lang.Class<?>> batch, java.util.List<java.lang.Class<?>> types)
onBatch
in interface AgentBuilder.RedefinitionStrategy.Listener
index
- A running index of the batch starting at 0
.batch
- The types included in this batch.types
- All types included in the redefinition.public java.lang.Iterable<? extends java.util.List<java.lang.Class<?>>> onError(int index, java.util.List<java.lang.Class<?>> batch, java.lang.Throwable throwable, java.util.List<java.lang.Class<?>> types)
onError
in interface AgentBuilder.RedefinitionStrategy.Listener
index
- A running index of the batch starting at 0
.batch
- The types included in this batch.throwable
- The throwable that caused this invocation.types
- All types included in the redefinition.batch
but not all classes.public void onComplete(int amount, java.util.List<java.lang.Class<?>> types, java.util.Map<java.util.List<java.lang.Class<?>>,java.lang.Throwable> failures)
onComplete
in interface AgentBuilder.RedefinitionStrategy.Listener
amount
- The total amount of batches that were executed.types
- All types included in the redefinition.failures
- A mapping of batch types to their unhandled failures.