@HashCodeAndEqualsPlugin.Enhance public static class AgentBuilder.RedefinitionStrategy.BatchAllocator.ForMatchedGrouping 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 java.util.Collection<? extends ElementMatcher<? super TypeDescription>> |
matchers
The type matchers to apply.
|
FIRST_BATCH
Constructor and Description |
---|
ForMatchedGrouping(java.util.Collection<? extends ElementMatcher<? super TypeDescription>> matchers)
Creates a new batch allocator that groups all batches by discriminating types using a type matcher.
|
ForMatchedGrouping(ElementMatcher<? super TypeDescription>... matcher)
Creates a new batch allocator that groups all batches by discriminating types using a type matcher.
|
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.
|
AgentBuilder.RedefinitionStrategy.BatchAllocator |
withinRange(int minimum,
int maximum)
Assures that any group is within a size range described by the supplied minimum and maximum.
|
AgentBuilder.RedefinitionStrategy.BatchAllocator |
withMaximum(int threshold)
Assures that any group is at least of a given size.
|
AgentBuilder.RedefinitionStrategy.BatchAllocator |
withMinimum(int threshold)
Assures that any group is at least of a given size.
|
private final java.util.Collection<? extends ElementMatcher<? super TypeDescription>> matchers
public ForMatchedGrouping(ElementMatcher<? super TypeDescription>... matcher)
matcher
- The type matchers to apply in their application order.public ForMatchedGrouping(java.util.Collection<? extends ElementMatcher<? super TypeDescription>> matchers)
matchers
- The type matchers to apply in their application order.public AgentBuilder.RedefinitionStrategy.BatchAllocator withMinimum(int threshold)
threshold
- The minimum threshold for any batch.public AgentBuilder.RedefinitionStrategy.BatchAllocator withMaximum(int threshold)
threshold
- The maximum threshold for any batch.public AgentBuilder.RedefinitionStrategy.BatchAllocator withinRange(int minimum, int maximum)
minimum
- The minimum threshold for any batch.maximum
- The maximum threshold for any batch.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.