Class BulkProcessor<TEntity>
- java.lang.Object
-
- de.bytefish.pgbulkinsert.bulkprocessor.BulkProcessor<TEntity>
-
- All Implemented Interfaces:
AutoCloseable
public class BulkProcessor<TEntity> extends Object implements AutoCloseable
-
-
Constructor Summary
Constructors Constructor Description BulkProcessor(IBulkWriteHandler<TEntity> handler, int bulkSize)BulkProcessor(IBulkWriteHandler<TEntity> handler, int bulkSize, @Nullable Duration flushInterval)
-
-
-
Constructor Detail
-
BulkProcessor
public BulkProcessor(IBulkWriteHandler<TEntity> handler, int bulkSize)
-
BulkProcessor
public BulkProcessor(IBulkWriteHandler<TEntity> handler, int bulkSize, @Nullable Duration flushInterval)
-
-
Method Detail
-
add
public BulkProcessor<TEntity> add(TEntity entity)
-
close
public void close() throws Exception- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
-