|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectariba.util.core.BatchSizer
ariba.util.core.BatchSizer.Fixed
public static final class BatchSizer.Fixed
Is a batch sizer that uses a simple fixed batch size.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class ariba.util.core.BatchSizer |
---|
BatchSizer.Fixed |
Constructor Summary | |
---|---|
BatchSizer.Fixed(int batchSize)
|
Method Summary | |
---|---|
boolean |
addToBatch(java.lang.Object object)
Returns true if, when object is considered
as the next object in the stream of objects, that after this
object a new batch should begin. |
int |
batchSize()
|
int |
currentSize()
|
void |
reset()
Resets the internal state of this after a batch. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BatchSizer.Fixed(int batchSize)
Method Detail |
---|
public int currentSize()
public int batchSize()
public void reset()
BatchSizer
this
after a batch.
reset
in class BatchSizer
public boolean addToBatch(java.lang.Object object)
BatchSizer
true
if, when object
is considered
as the next object in the stream of objects, that after this
object a new batch should begin. Returns false
if
after object
is recognized a new batch should not begin.
If the addition of object
causes this method to return
true
, then this method should continue to return
true
until BatchSizer.reset()
is called.
addToBatch
in class BatchSizer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |