ariba.util.core
Class BatchSizer.Fixed

java.lang.Object
  extended by ariba.util.core.BatchSizer
      extended by 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.


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

BatchSizer.Fixed

public BatchSizer.Fixed(int batchSize)
Method Detail

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(java.lang.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-2014 Ariba, Inc. All Rights Reserved.