ariba.util.core
Class BatchSizer
java.lang.Object
ariba.util.core.BatchSizer
- Direct Known Subclasses:
- BatchSizer.Fixed
public abstract class BatchSizer
- extends Object
Is a class that defines how a stream of objects should be batched.
|
Nested Class Summary |
static class |
BatchSizer.Fixed
Is a batch sizer that uses a simple fixed batch size. |
|
Method Summary |
abstract 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. |
abstract void |
reset()
Resets the internal state of this after a batch. |
BatchSizer
public BatchSizer()
addToBatch
public abstract 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. 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 reset() is called.
reset
public abstract void reset()
- Resets the internal state of
this after a batch.
AribaWeb User Interface Development Framework
Copyright © 2000-2009 Ariba, Inc. All Rights Reserved.