Package org.copperengine.core.batcher
Interface Batcher
-
- All Known Implementing Classes:
BatcherImpl
public interface Batcher
A batcher is a service that collects homogeneous tasks over a period of time and executes them as a batch. This may increase dramatically the throughput for a kind of tasks. A typical usage for the Batcher is database batching. It collects simple insert, update oder delete statements and executes them as a batch. This increases throughput mostly by a factor of 10 or more. Of course, batching may lead to longer latency times.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <E extends BatchExecutor<E,T>,T extends BatchCommand<E,T>>
voidsubmitBatchCommand(BatchCommand<E,T> cmd)
-
-
-
Method Detail
-
submitBatchCommand
<E extends BatchExecutor<E,T>,T extends BatchCommand<E,T>> void submitBatchCommand(BatchCommand<E,T> cmd)
-
-