Class AgentBuilder.RedefinitionStrategy.Listener.BatchReallocator

java.lang.Object
net.bytebuddy.agent.builder.AgentBuilder.RedefinitionStrategy.Listener.Adapter
net.bytebuddy.agent.builder.AgentBuilder.RedefinitionStrategy.Listener.BatchReallocator
All Implemented Interfaces:
AgentBuilder.RedefinitionStrategy.Listener
Enclosing interface:
AgentBuilder.RedefinitionStrategy.Listener

@Enhance public static class AgentBuilder.RedefinitionStrategy.Listener.BatchReallocator extends AgentBuilder.RedefinitionStrategy.Listener.Adapter

A batch reallocator allows to split up a failed retransformation into additional batches which are reenqueed to the current retransformation process. To do so, any batch with at least to classes is rerouted through a AgentBuilder.RedefinitionStrategy.BatchAllocator which is responsible for regrouping the classes that failed to be retransformed into new batches.

Important: To avoid endless looping over classes that cannot be successfully retransformed, the supplied batch allocator must not resubmit batches that previously failed as an identical outcome is likely.