public static class AgentBuilder.RedefinitionStrategy.BatchAllocator.ForFixedSize extends Object implements AgentBuilder.RedefinitionStrategy.BatchAllocator
AgentBuilder.RedefinitionStrategy.BatchAllocator.ForFixedSize, AgentBuilder.RedefinitionStrategy.BatchAllocator.ForMatchedGrouping, AgentBuilder.RedefinitionStrategy.BatchAllocator.ForTotal, AgentBuilder.RedefinitionStrategy.BatchAllocator.Slicing
Modifier | Constructor and Description |
---|---|
protected |
ForFixedSize(int size)
Creates a new batch allocator that creates fixed-sized chunks.
|
Modifier and Type | Method and Description |
---|---|
Iterable<? extends List<Class<?>>> |
batch(List<Class<?>> types)
Splits a list of types to be retransformed into seperate batches.
|
boolean |
equals(Object object) |
int |
hashCode() |
static AgentBuilder.RedefinitionStrategy.BatchAllocator |
ofSize(int size)
Creates a new batch allocator that creates chunks of a fixed size.
|
String |
toString() |
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 Iterable<? extends List<Class<?>>> batch(List<Class<?>> types)
AgentBuilder.RedefinitionStrategy.BatchAllocator
batch
in interface AgentBuilder.RedefinitionStrategy.BatchAllocator
types
- A list of types which should be retransformed.Copyright © 2014–2016. All rights reserved.