@HashCodeAndEqualsPlugin.Enhance public static class AgentBuilder.RedefinitionStrategy.BatchAllocator.Partitioning extends java.lang.Object implements AgentBuilder.RedefinitionStrategy.BatchAllocator
AgentBuilder.RedefinitionStrategy.BatchAllocator.ForFixedSize, AgentBuilder.RedefinitionStrategy.BatchAllocator.ForMatchedGrouping, AgentBuilder.RedefinitionStrategy.BatchAllocator.ForTotal, AgentBuilder.RedefinitionStrategy.BatchAllocator.Partitioning, AgentBuilder.RedefinitionStrategy.BatchAllocator.Slicing
Modifier and Type | Field and Description |
---|---|
private int |
parts
The amount of batches to generate.
|
FIRST_BATCH
Modifier | Constructor and Description |
---|---|
protected |
Partitioning(int parts)
Creates a new batch allocator that splits types for redefinition into a fixed amount of parts.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Iterable<? extends java.util.List<java.lang.Class<?>>> |
batch(java.util.List<java.lang.Class<?>> types)
Splits a list of types to be retransformed into separate batches.
|
static AgentBuilder.RedefinitionStrategy.BatchAllocator |
of(int parts)
Creates a part-splitting batch allocator.
|
protected Partitioning(int parts)
parts
- The amount of parts to create.public static AgentBuilder.RedefinitionStrategy.BatchAllocator of(int parts)
parts
- The amount of parts to create.public java.lang.Iterable<? extends java.util.List<java.lang.Class<?>>> batch(java.util.List<java.lang.Class<?>> types)
batch
in interface AgentBuilder.RedefinitionStrategy.BatchAllocator
types
- A list of types which should be retransformed.