public class WeightedBatch<T> extends Object
Constructor and Description |
---|
WeightedBatch(long lastCompactionRangeEndKey) |
Modifier and Type | Method and Description |
---|---|
void |
addToBatch(T packet) |
List<T> |
getBatch() |
CompactionResult |
getCompactionResult() |
long |
getWeight() |
boolean |
isLimitReached() |
void |
setBatch(List<T> batch) |
void |
setLimitReached(boolean limitReached) |
void |
setWeight(long weight) |
int |
size() |
public long getWeight()
public void setWeight(long weight)
public boolean isLimitReached()
public void setLimitReached(boolean limitReached)
public CompactionResult getCompactionResult()
public void addToBatch(T packet)
public int size()
Copyright © GigaSpaces.