org.rococoa.internal
Class OperationBatcher

java.lang.Object
  extended by org.rococoa.internal.OperationBatcher
Direct Known Subclasses:
AutoreleaseBatcher

public abstract class OperationBatcher
extends java.lang.Object

Batches calls to operate(), calling operation() once per batchsize.

Author:
duncan

Constructor Summary
OperationBatcher(int batchSize)
           
 
Method Summary
 void close()
           
 void operate()
           
protected abstract  void operation()
           
protected abstract  void reset()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OperationBatcher

public OperationBatcher(int batchSize)
Method Detail

operate

public void operate()

close

public void close()

operation

protected abstract void operation()

reset

protected abstract void reset()


Copyright © 2009. All Rights Reserved.