org.oddjob.beanbus
Class Batcher<T>
java.lang.Object
org.oddjob.beanbus.Batcher<T>
- All Implemented Interfaces:
- BusAware, Destination<T>
public class Batcher<T>
- extends Object
- implements Destination<T>, BusAware
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Batcher
public Batcher()
accept
public void accept(T bean)
throws CrashBusException
- Specified by:
accept in interface Destination<T>
- Throws:
CrashBusException
dispatch
protected void dispatch()
throws CrashBusException
- Throws:
CrashBusException
setBus
public void setBus(BeanBus driver)
- Specified by:
setBus in interface BusAware
getBatchSize
public int getBatchSize()
setBatchSize
public void setBatchSize(int batchSize)
getNext
public Destination<List<T>> getNext()
setNext
public void setNext(Destination<List<T>> next)
getBadBeanHandler
public BadBeanHandler<List<? super T>> getBadBeanHandler()
setBadBeanHandler
public void setBadBeanHandler(BadBeanHandler<List<? super T>> badBeanHandler)