@HashCodeAndEqualsPlugin.Enhance public static class AgentBuilder.RedefinitionStrategy.BatchAllocator.ForFixedSize 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 |
size
The size of each chunk.
|
FIRST_BATCH| Modifier | Constructor and Description |
|---|---|
protected |
ForFixedSize(int size)
Creates a new batch allocator that creates fixed-sized chunks.
|
| 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 |
ofSize(int size)
Creates a new batch allocator that creates chunks of a fixed size.
|
protected ForFixedSize(int size)
size - The size of each chunk.public static AgentBuilder.RedefinitionStrategy.BatchAllocator ofSize(int size)
size - The size of each chunk or 0 if the batch should be included in a single chunk.public java.lang.Iterable<? extends java.util.List<java.lang.Class<?>>> batch(java.util.List<java.lang.Class<?>> types)
batch in interface AgentBuilder.RedefinitionStrategy.BatchAllocatortypes - A list of types which should be retransformed.