public class WeightedBatch<T> extends Object
Constructor and Description |
---|
WeightedBatch() |
WeightedBatch(List<T> batch) |
WeightedBatch(List<T> batch,
long weight) |
Modifier and Type | Method and Description |
---|---|
void |
addToBatch(T packet) |
List<T> |
getBatch() |
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 void addToBatch(T packet)
public int size()
Copyright © GigaSpaces.