Package org.openforis.concurrency
Class BatchProcessor<T>
- java.lang.Object
-
- org.openforis.concurrency.BatchProcessor<T>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceBatchProcessor.Executor<T>
-
Constructor Summary
Constructors Constructor Description BatchProcessor(int batchSize, BatchProcessor.Executor<T> executor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidprocess(Collection<T> items)voidprocess(T item)
-
-
-
Constructor Detail
-
BatchProcessor
public BatchProcessor(int batchSize, BatchProcessor.Executor<T> executor)
-
-
Method Detail
-
process
public void process(Collection<T> items)
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-