public class BulkProcessor<TEntity> extends Object implements AutoCloseable
| Constructor and Description |
|---|
BulkProcessor(IBulkWriteHandler<TEntity> handler,
int bulkSize) |
BulkProcessor(IBulkWriteHandler<TEntity> handler,
int bulkSize,
java.time.Duration flushInterval) |
| Modifier and Type | Method and Description |
|---|---|
BulkProcessor<TEntity> |
add(TEntity entity) |
static boolean |
cancel(Future<?> future) |
void |
close() |
public BulkProcessor(IBulkWriteHandler<TEntity> handler, int bulkSize)
public BulkProcessor(IBulkWriteHandler<TEntity> handler, int bulkSize, java.time.Duration flushInterval)
public BulkProcessor<TEntity> add(TEntity entity)
public void close()
throws Exception
close in interface AutoCloseableExceptionpublic static boolean cancel(Future<?> future)
Copyright © 2020. All rights reserved.