public static interface AgentBuilder.RedefinitionStrategy.Listener
Modifier and Type | Interface and Description |
---|---|
static class |
AgentBuilder.RedefinitionStrategy.Listener.Adapter
A listener adapter that offers non-operational implementations of all listener methods.
|
static class |
AgentBuilder.RedefinitionStrategy.Listener.BatchReallocator
A batch reallocator allows to split up a failed retransformation into additional batches which are reenqueed to the
current retransformation process.
|
static class |
AgentBuilder.RedefinitionStrategy.Listener.Compound
A compound listener that delegates events to several listeners.
|
static class |
AgentBuilder.RedefinitionStrategy.Listener.ErrorEscalating
A listener that halts a retransformation process upon an exception.
|
static class |
AgentBuilder.RedefinitionStrategy.Listener.NoOp
A non-operational listener.
|
static class |
AgentBuilder.RedefinitionStrategy.Listener.Pausing
A listener that invokes
Thread.sleep(long) prior to every batch but the first batch. |
static class |
AgentBuilder.RedefinitionStrategy.Listener.StreamWriting
A listener that writes events to a
PrintStream . |
static class |
AgentBuilder.RedefinitionStrategy.Listener.Yielding
A listener that invokes
Thread.yield() prior to every batch but the first batch. |
Modifier and Type | Method and Description |
---|---|
void |
onBatch(int index,
List<Class<?>> batch,
List<Class<?>> types)
Invoked before applying a batch.
|
void |
onComplete(int amount,
List<Class<?>> types,
Map<List<Class<?>>,Throwable> failures)
Invoked upon completion of all batches.
|
Iterable<? extends List<Class<?>>> |
onError(int index,
List<Class<?>> batch,
Throwable throwable,
List<Class<?>> types)
Invoked upon an error during a batch.
|
void onBatch(int index, List<Class<?>> batch, List<Class<?>> types)
index
- A running index of the batch starting at 0
.batch
- The types included in this batch.types
- All types included in the redefinition.Iterable<? extends List<Class<?>>> onError(int index, List<Class<?>> batch, Throwable throwable, List<Class<?>> types)
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.void onComplete(int amount, List<Class<?>> types, Map<List<Class<?>>,Throwable> failures)
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.Copyright © 2014–2020. All rights reserved.