public static interface AgentBuilder.Redefining extends AgentBuilder
AgentBuilder.RedefinitionStrategy
. Such a configuration
is only applied if the redefinition strategy is alive.AgentBuilder.Default, AgentBuilder.DescriptionStrategy, AgentBuilder.FallbackStrategy, AgentBuilder.Identified, AgentBuilder.Ignored, AgentBuilder.InitializationStrategy, AgentBuilder.InstallationStrategy, AgentBuilder.LambdaInstrumentationStrategy, AgentBuilder.Listener, AgentBuilder.LocationStrategy, AgentBuilder.Matchable<T extends AgentBuilder.Matchable<T>>, AgentBuilder.PoolStrategy, AgentBuilder.RawMatcher, AgentBuilder.Redefining, AgentBuilder.RedefinitionStrategy, AgentBuilder.Transformer, AgentBuilder.TypeStrategy
Modifier and Type | Method and Description |
---|---|
AgentBuilder.Redefining |
with(AgentBuilder.RedefinitionStrategy.BatchAllocator redefinitionBatchAllocator)
A batch allocator is responsible for diving a redefining of existing types into several chunks.
|
AgentBuilder.Redefining |
with(AgentBuilder.RedefinitionStrategy.FailureHandler redefinitionFailureHandler)
A failure handler is responsible for reacting to failed type redefinitions.
|
AgentBuilder.Redefining |
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.
|
assureReadEdgeFromAndTo, assureReadEdgeFromAndTo, assureReadEdgeFromAndTo, assureReadEdgeTo, assureReadEdgeTo, assureReadEdgeTo, disableBootstrapInjection, disableClassFormatChanges, disableNativeMethodPrefix, enableBootstrapInjection, enableNativeMethodPrefix, ignore, ignore, ignore, ignore, installOn, installOnByteBuddyAgent, makeRaw, type, type, type, type, with, with, with, with, with, with, with, with, with, with, with
AgentBuilder.Redefining with(AgentBuilder.RedefinitionStrategy.BatchAllocator redefinitionBatchAllocator)
AgentBuilder.RedefinitionStrategy.Listener
action between chunks.redefinitionBatchAllocator
- The batch allocator to use.AgentBuilder.Redefining with(AgentBuilder.RedefinitionStrategy.FailureHandler redefinitionFailureHandler)
redefinitionFailureHandler
- The failure handler to apply.AgentBuilder.Redefining 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.Copyright © 2014–2016. All rights reserved.