@HashCodeAndEqualsPlugin.Enhance public static class AgentBuilder.RedefinitionStrategy.BatchAllocator.ForMatchedGrouping extends 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
FIRST_BATCH
Constructor and Description |
---|
ForMatchedGrouping(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 |
---|---|
Iterable<? extends List<Class<?>>> |
batch(List<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.
|
public ForMatchedGrouping(ElementMatcher<? super TypeDescription>... matcher)
matcher
- The type matchers to apply in their application order.public ForMatchedGrouping(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 Iterable<? extends List<Class<?>>> batch(List<Class<?>> types)
batch
in interface AgentBuilder.RedefinitionStrategy.BatchAllocator
types
- A list of types which should be retransformed.Copyright © 2014–2025. All rights reserved.