protected static class AgentBuilder.RedefinitionStrategy.ResubmissionStrategy.Enabled.ResubmissionListener extends AgentBuilder.Listener.Adapter
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AgentBuilder.RedefinitionStrategy.ResubmissionStrategy.Enabled.ResubmissionListener.ConcurrentHashSet<T>
A set projection for a
ConcurrentHashMap. |
AgentBuilder.Listener.Adapter, AgentBuilder.Listener.Compound, AgentBuilder.Listener.Filtering, AgentBuilder.Listener.ModuleReadEdgeCompleting, AgentBuilder.Listener.NoOp, AgentBuilder.Listener.StreamWriting, AgentBuilder.Listener.WithErrorsOnly, AgentBuilder.Listener.WithTransformationsOnly| Modifier and Type | Field and Description |
|---|---|
private ElementMatcher<? super java.lang.Throwable> |
matcher
The matcher for filtering error causes.
|
private java.util.concurrent.ConcurrentMap<AgentBuilder.RedefinitionStrategy.ResubmissionStrategy.Enabled.StorageKey,java.util.Set<java.lang.String>> |
types
A map of class loaders to their types to resubmit.
|
LOADED| Modifier | Constructor and Description |
|---|---|
protected |
ResubmissionListener(ElementMatcher<? super java.lang.Throwable> matcher,
java.util.concurrent.ConcurrentMap<AgentBuilder.RedefinitionStrategy.ResubmissionStrategy.Enabled.StorageKey,java.util.Set<java.lang.String>> types) |
| Modifier and Type | Method and Description |
|---|---|
void |
onError(java.lang.String typeName,
java.lang.ClassLoader classLoader,
JavaModule module,
boolean loaded,
java.lang.Throwable throwable)
Invoked when an error has occurred during transformation.
|
onComplete, onDiscovery, onIgnored, onTransformationprivate final ElementMatcher<? super java.lang.Throwable> matcher
private final java.util.concurrent.ConcurrentMap<AgentBuilder.RedefinitionStrategy.ResubmissionStrategy.Enabled.StorageKey,java.util.Set<java.lang.String>> types
protected ResubmissionListener(ElementMatcher<? super java.lang.Throwable> matcher, java.util.concurrent.ConcurrentMap<AgentBuilder.RedefinitionStrategy.ResubmissionStrategy.Enabled.StorageKey,java.util.Set<java.lang.String>> types)
matcher - The matcher for filtering error causes.types - A map of class loaders to their types to resubmit.public void onError(java.lang.String typeName,
java.lang.ClassLoader classLoader,
JavaModule module,
boolean loaded,
java.lang.Throwable throwable)
onError in interface AgentBuilder.ListeneronError in class AgentBuilder.Listener.AdaptertypeName - The binary name of the instrumented type.classLoader - The class loader which is loading this type.module - The instrumented type's module or null if the current VM does not support modules.loaded - true if the type is already loaded.throwable - The occurred error.