ariba.util.core
Class BatchSizer

java.lang.Object
  extended by ariba.util.core.BatchSizer
Direct Known Subclasses:
BatchSizer.Fixed

public abstract class BatchSizer
extends java.lang.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.
 
Constructor Summary
BatchSizer()
           
 
Method Summary
abstract  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.
abstract  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

BatchSizer

public BatchSizer()
Method Detail

addToBatch

public abstract 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. 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-2014 Ariba, Inc. All Rights Reserved.