protected static class AgentBuilder.Default.ExecutingTransformer.FailureCollectingListener extends AgentBuilder.RedefinitionStrategy.Listener.Adapter
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
Modifier | Constructor and Description |
---|---|
protected |
FailureCollectingListener(Map<Class<?>,Throwable> failures)
Creates a new failure collecting listener.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
int |
hashCode() |
Iterable<? extends List<Class<?>>> |
onError(int index,
List<Class<?>> batch,
Throwable throwable,
List<Class<?>> types)
Invoked upon an error during a batch.
|
String |
toString() |
onBatch, onComplete
public Iterable<? extends List<Class<?>>> onError(int index, List<Class<?>> batch, Throwable throwable, List<Class<?>> types)
AgentBuilder.RedefinitionStrategy.Listener
onError
in interface AgentBuilder.RedefinitionStrategy.Listener
onError
in class AgentBuilder.RedefinitionStrategy.Listener.Adapter
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.Copyright © 2014–2016. All rights reserved.