| Package | Description |
|---|---|
| com.feedzai.commons.sql.abstraction.batch |
Contains a batch to periodically flushes to the database.
|
| com.feedzai.commons.sql.abstraction.engine |
Contains the database engine core.
|
| Modifier and Type | Field and Description |
|---|---|
protected Optional<BatchListener> |
AbstractBatch.batchListener
The listener for customized behavior when this batch succeeds or fails to persist data.
|
| Modifier and Type | Method and Description |
|---|---|
static BatchListener |
AbstractBatch.convertToBatchListener(FailureListener failureListener)
Deprecated.
The
FailureListener is deprecated and this method will be removed once it is removed. |
| Modifier and Type | Method and Description |
|---|---|
static DefaultBatch |
DefaultBatch.create(DatabaseEngine de,
String name,
int batchSize,
long batchTimeout,
long maxAwaitTimeShutdown,
BatchListener listener)
Creates a new instance of
DefaultBatch with a BatchListener. |
static DefaultBatch |
DefaultBatch.create(DatabaseEngine de,
String name,
int batchSize,
long batchTimeout,
long maxAwaitTimeShutdown,
BatchListener listener,
int maxFlushRetries,
long flushRetryDelay)
Creates a new instance of
DefaultBatch with a BatchListener. |
| Constructor and Description |
|---|
AbstractBatch(DatabaseEngine de,
String name,
int batchSize,
long batchTimeout,
long maxAwaitTimeShutdown,
BatchListener batchListener)
Creates a new instance of
AbstractBatch with a BatchListener. |
AbstractBatch(DatabaseEngine de,
String name,
int batchSize,
long batchTimeout,
long maxAwaitTimeShutdown,
BatchListener batchListener,
int maxFlushRetries,
long flushRetryDelay)
Creates a new instance of
AbstractBatch with a BatchListener. |
DefaultBatch(DatabaseEngine de,
String name,
int batchSize,
long batchTimeout,
long maxAwaitTimeShutdown,
BatchListener listener)
Creates a new instance of
DefaultBatch. |
DefaultBatch(DatabaseEngine de,
String name,
int batchSize,
long batchTimeout,
long maxAwaitTimeShutdown,
BatchListener listener,
int maxFlushRetries,
long flushRetryDelay)
Creates a new instance of
DefaultBatch. |
| Modifier and Type | Method and Description |
|---|---|
AbstractBatch |
AbstractDatabaseEngine.createBatch(int batchSize,
long batchTimeout,
String batchName,
BatchListener batchListener) |
default AbstractBatch |
DatabaseEngine.createBatch(int batchSize,
long batchTimeout,
String batchName,
BatchListener batchListener)
Creates a new batch that periodically flushes a batch.
|
Copyright © 2021 Feedzai. All rights reserved.