@HashCodeAndEqualsPlugin.Enhance public static class AgentBuilder.RedefinitionStrategy.BatchAllocator.Slicing extends java.lang.Object implements AgentBuilder.RedefinitionStrategy.BatchAllocator
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AgentBuilder.RedefinitionStrategy.BatchAllocator.Slicing.SlicingIterable
An iterable that slices batches into parts of a minimum and maximum size.
|
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 AgentBuilder.RedefinitionStrategy.BatchAllocator |
batchAllocator
The delegate batch allocator.
|
private int |
maximum
The maximum size of each slice.
|
private int |
minimum
The minimum size of each slice.
|
FIRST_BATCH| Modifier | Constructor and Description |
|---|---|
protected |
Slicing(int minimum,
int maximum,
AgentBuilder.RedefinitionStrategy.BatchAllocator batchAllocator)
Creates a new slicing batch allocator.
|
| 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 |
withinRange(int minimum,
int maximum,
AgentBuilder.RedefinitionStrategy.BatchAllocator batchAllocator)
Creates a new slicing batch allocator.
|
static AgentBuilder.RedefinitionStrategy.BatchAllocator |
withMaximum(int maximum,
AgentBuilder.RedefinitionStrategy.BatchAllocator batchAllocator)
Creates a new slicing batch allocator.
|
static AgentBuilder.RedefinitionStrategy.BatchAllocator |
withMinimum(int minimum,
AgentBuilder.RedefinitionStrategy.BatchAllocator batchAllocator)
Creates a new slicing batch allocator.
|
private final int minimum
private final int maximum
private final AgentBuilder.RedefinitionStrategy.BatchAllocator batchAllocator
protected Slicing(int minimum,
int maximum,
AgentBuilder.RedefinitionStrategy.BatchAllocator batchAllocator)
minimum - The minimum size of each slice.maximum - The maximum size of each slice.batchAllocator - The delegate batch allocator.public static AgentBuilder.RedefinitionStrategy.BatchAllocator withMinimum(int minimum, AgentBuilder.RedefinitionStrategy.BatchAllocator batchAllocator)
minimum - The minimum size of each slice.batchAllocator - The delegate batch allocator.public static AgentBuilder.RedefinitionStrategy.BatchAllocator withMaximum(int maximum, AgentBuilder.RedefinitionStrategy.BatchAllocator batchAllocator)
maximum - The maximum size of each slice.batchAllocator - The delegate batch allocator.public static AgentBuilder.RedefinitionStrategy.BatchAllocator withinRange(int minimum, int maximum, AgentBuilder.RedefinitionStrategy.BatchAllocator batchAllocator)
minimum - The minimum size of each slice.maximum - The maximum size of each slice.batchAllocator - The delegate batch allocator.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.