Package net.bytebuddy.agent.builder
Class AgentBuilder.RedefinitionStrategy.BatchAllocator.Partitioning
java.lang.Object
net.bytebuddy.agent.builder.AgentBuilder.RedefinitionStrategy.BatchAllocator.Partitioning
- All Implemented Interfaces:
AgentBuilder.RedefinitionStrategy.BatchAllocator
- Enclosing interface:
- AgentBuilder.RedefinitionStrategy.BatchAllocator
@Enhance
public static class AgentBuilder.RedefinitionStrategy.BatchAllocator.Partitioning
extends Object
implements AgentBuilder.RedefinitionStrategy.BatchAllocator
A partitioning batch allocator that splits types for redefinition into a fixed amount of parts.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.agent.builder.AgentBuilder.RedefinitionStrategy.BatchAllocator
AgentBuilder.RedefinitionStrategy.BatchAllocator.ForFixedSize, AgentBuilder.RedefinitionStrategy.BatchAllocator.ForMatchedGrouping, AgentBuilder.RedefinitionStrategy.BatchAllocator.ForTotal, AgentBuilder.RedefinitionStrategy.BatchAllocator.Partitioning, AgentBuilder.RedefinitionStrategy.BatchAllocator.Slicing
-
Field Summary
FieldsFields inherited from interface net.bytebuddy.agent.builder.AgentBuilder.RedefinitionStrategy.BatchAllocator
FIRST_BATCH
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Partitioning
(int parts) Creates a new batch allocator that splits types for redefinition into a fixed amount of parts. -
Method Summary
-
Field Details
-
parts
private final int partsThe amount of batches to generate.
-
-
Constructor Details
-
Partitioning
protected Partitioning(int parts) Creates a new batch allocator that splits types for redefinition into a fixed amount of parts.- Parameters:
parts
- The amount of parts to create.
-
-
Method Details
-
of
Creates a part-splitting batch allocator.- Parameters:
parts
- The amount of parts to create.- Returns:
- A batch allocator that splits the redefined types into a fixed amount of batches.
-
batch
Splits a list of types to be retransformed into separate batches.- Specified by:
batch
in interfaceAgentBuilder.RedefinitionStrategy.BatchAllocator
- Parameters:
types
- A list of types which should be retransformed.- Returns:
- An iterable of retransformations within a batch.
-