ariba.util.core
Class BatchSizer.Fixed
java.lang.Object
ariba.util.core.BatchSizer
ariba.util.core.BatchSizer.Fixed
- Enclosing class:
- BatchSizer
public static final class BatchSizer.Fixed
- extends BatchSizer
Is a batch sizer that uses a simple fixed batch size.
|
Method Summary |
boolean |
addToBatch(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. |
BatchSizer.Fixed
public BatchSizer.Fixed(int batchSize)
currentSize
public int currentSize()
batchSize
public int batchSize()
reset
public void reset()
- Description copied from class:
BatchSizer
- Resets the internal state of
this after a batch.
- Specified by:
reset in class BatchSizer
addToBatch
public boolean addToBatch(Object object)
- Description copied from class:
BatchSizer
- 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. 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.
- Specified by:
addToBatch in class BatchSizer
AribaWeb User Interface Development Framework
Copyright © 2000-2009 Ariba, Inc. All Rights Reserved.