@HashCodeAndEqualsPlugin.Enhance public static class AgentBuilder.RedefinitionStrategy.ResubmissionStrategy.Enabled extends java.lang.Object implements AgentBuilder.RedefinitionStrategy.ResubmissionStrategy
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AgentBuilder.RedefinitionStrategy.ResubmissionStrategy.Enabled.LookupKey
A key for a class loader that can only be used for looking up a preexisting value but avoids reference management.
|
protected static class |
AgentBuilder.RedefinitionStrategy.ResubmissionStrategy.Enabled.ResubmissionInstallationListener
A job that resubmits any matched type that previously failed during transformation.
|
protected static class |
AgentBuilder.RedefinitionStrategy.ResubmissionStrategy.Enabled.ResubmissionListener
A listener that registers types for resubmission that failed during transformations.
|
protected static class |
AgentBuilder.RedefinitionStrategy.ResubmissionStrategy.Enabled.StorageKey
A key for a class loader that only weakly references the class loader.
|
AgentBuilder.RedefinitionStrategy.ResubmissionStrategy.Disabled, AgentBuilder.RedefinitionStrategy.ResubmissionStrategy.Enabled, AgentBuilder.RedefinitionStrategy.ResubmissionStrategy.Installation| Modifier and Type | Field and Description |
|---|---|
private ElementMatcher<? super java.lang.Throwable> |
matcher
The matcher for filtering error causes.
|
private AgentBuilder.RedefinitionStrategy.ResubmissionScheduler |
resubmissionScheduler
A scheduler that is responsible for resubmission of types.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Enabled(AgentBuilder.RedefinitionStrategy.ResubmissionScheduler resubmissionScheduler,
ElementMatcher<? super java.lang.Throwable> matcher)
Creates a new enabled resubmission strategy.
|
| Modifier and Type | Method and Description |
|---|---|
AgentBuilder.RedefinitionStrategy.ResubmissionStrategy.Installation |
apply(java.lang.instrument.Instrumentation instrumentation,
AgentBuilder.LocationStrategy locationStrategy,
AgentBuilder.Listener listener,
AgentBuilder.InstallationListener installationListener,
AgentBuilder.CircularityLock circularityLock,
AgentBuilder.RawMatcher matcher,
AgentBuilder.RedefinitionStrategy redefinitionStrategy,
AgentBuilder.RedefinitionStrategy.BatchAllocator redefinitionBatchAllocator,
AgentBuilder.RedefinitionStrategy.Listener redefinitionBatchListener)
Invoked upon installation of an agent builder.
|
private final AgentBuilder.RedefinitionStrategy.ResubmissionScheduler resubmissionScheduler
private final ElementMatcher<? super java.lang.Throwable> matcher
protected Enabled(AgentBuilder.RedefinitionStrategy.ResubmissionScheduler resubmissionScheduler, ElementMatcher<? super java.lang.Throwable> matcher)
resubmissionScheduler - A scheduler that is responsible for resubmission of types.matcher - The matcher for filtering error causes.public AgentBuilder.RedefinitionStrategy.ResubmissionStrategy.Installation apply(java.lang.instrument.Instrumentation instrumentation, AgentBuilder.LocationStrategy locationStrategy, AgentBuilder.Listener listener, AgentBuilder.InstallationListener installationListener, AgentBuilder.CircularityLock circularityLock, AgentBuilder.RawMatcher matcher, AgentBuilder.RedefinitionStrategy redefinitionStrategy, AgentBuilder.RedefinitionStrategy.BatchAllocator redefinitionBatchAllocator, AgentBuilder.RedefinitionStrategy.Listener redefinitionBatchListener)
apply in interface AgentBuilder.RedefinitionStrategy.ResubmissionStrategyinstrumentation - The instrumentation instance to use.locationStrategy - The location strategy to use.listener - The listener to use.installationListener - The installation listener to use.circularityLock - The circularity lock to use.matcher - The matcher to apply for analyzing if a type is to be resubmitted.redefinitionStrategy - The redefinition strategy to use.redefinitionBatchAllocator - The batch allocator to use.redefinitionBatchListener - The batch listener to notify.