public static interface AgentBuilder.RedefinitionListenable extends AgentBuilder
Modifier and Type | Interface and Description |
---|---|
static interface |
AgentBuilder.RedefinitionListenable.WithImplicitDiscoveryStrategy
An agent builder configuration strategy that allows the definition of a discovery strategy.
|
static interface |
AgentBuilder.RedefinitionListenable.WithoutBatchStrategy
An agent builder configuration that allows the configuration of a batching strategy.
|
AgentBuilder.CircularityLock, AgentBuilder.ClassFileBufferStrategy, AgentBuilder.Default, AgentBuilder.DescriptionStrategy, AgentBuilder.FallbackStrategy, AgentBuilder.Identified, AgentBuilder.Ignored, AgentBuilder.InitializationStrategy, AgentBuilder.InstallationListener, AgentBuilder.LambdaInstrumentationStrategy, AgentBuilder.Listener, AgentBuilder.LocationStrategy, AgentBuilder.Matchable<T extends AgentBuilder.Matchable<T>>, AgentBuilder.PoolStrategy, AgentBuilder.RawMatcher, AgentBuilder.RedefinitionListenable, AgentBuilder.RedefinitionStrategy, AgentBuilder.Transformer, AgentBuilder.TypeStrategy
Modifier and Type | Method and Description |
---|---|
AgentBuilder.RedefinitionListenable |
with(AgentBuilder.RedefinitionStrategy.Listener redefinitionListener)
A redefinition listener is invoked before each batch of type redefinitions and on every error as well as
after the redefinition was completed.
|
AgentBuilder |
withResubmission(AgentBuilder.RedefinitionStrategy.ResubmissionScheduler resubmissionScheduler)
Enables resubmission of failed transformations by applying a retransformation of the loaded type.
|
AgentBuilder |
withResubmission(AgentBuilder.RedefinitionStrategy.ResubmissionScheduler resubmissionScheduler,
ElementMatcher<? super Throwable> matcher)
Enables resubmission of failed transformations by applying a retransformation of the loaded type.
|
assureReadEdgeFromAndTo, assureReadEdgeFromAndTo, assureReadEdgeFromAndTo, assureReadEdgeTo, assureReadEdgeTo, assureReadEdgeTo, disableBootstrapInjection, disableClassFormatChanges, disableNativeMethodPrefix, enableBootstrapInjection, enableNativeMethodPrefix, enableUnsafeBootstrapInjection, ignore, ignore, ignore, ignore, installOn, installOnByteBuddyAgent, makeRaw, type, type, type, type, with, with, with, with, with, with, with, with, with, with, with, with, with
AgentBuilder.RedefinitionListenable with(AgentBuilder.RedefinitionStrategy.Listener redefinitionListener)
A redefinition listener is invoked before each batch of type redefinitions and on every error as well as after the redefinition was completed. A redefinition listener can be used for debugging or logging purposes and to apply actions between each batch, e.g. to pause or wait in order to avoid rendering the current VM non-responsive if a lot of classes are redefined.
Adding several listeners does not replace previous listeners but applies them in the registration order.
redefinitionListener
- The listener to register.AgentBuilder withResubmission(AgentBuilder.RedefinitionStrategy.ResubmissionScheduler resubmissionScheduler)
resubmissionScheduler
- A scheduler which is responsible for scheduling the resubmission job.AgentBuilder withResubmission(AgentBuilder.RedefinitionStrategy.ResubmissionScheduler resubmissionScheduler, ElementMatcher<? super Throwable> matcher)
resubmissionScheduler
- A scheduler which is responsible for scheduling the resubmission job.matcher
- A matcher that filters throwable instances where non-matched throwables are not triggering a resubmission.Copyright © 2014–2018. All rights reserved.