| 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 |
|---|---|
static FailureListener |
AbstractBatch.NO_OP
Constant
FailureListener representing the NO OP operation. |
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Optional<FailureListener> |
AbstractBatch.failureListener
The failure listener for customized behavior when this batch fails to persist data.
|
| Modifier and Type | Method and Description |
|---|---|
static DefaultBatch |
DefaultBatch.create(DatabaseEngine de,
java.lang.String name,
int batchSize,
long batchTimeout,
long maxAwaitTimeShutdown,
FailureListener listener)
Creates a new instance of
DefaultBatch with a FailureListener. |
static DefaultBatch |
DefaultBatch.create(DatabaseEngine de,
java.lang.String name,
int batchSize,
long batchTimeout,
long maxAwaitTimeShutdown,
FailureListener listener,
int maxFlushRetries,
long flushRetryDelay)
Creates a new instance of
DefaultBatch with a FailureListener. |
| Constructor and Description |
|---|
AbstractBatch(DatabaseEngine de,
java.lang.String name,
int batchSize,
long batchTimeout,
long maxAwaitTimeShutdown,
FailureListener failureListener)
Creates a new instance of
AbstractBatch with a FailureListener. |
AbstractBatch(DatabaseEngine de,
java.lang.String name,
int batchSize,
long batchTimeout,
long maxAwaitTimeShutdown,
FailureListener failureListener,
int maxFlushRetries,
long flushRetryDelay)
Creates a new instance of
AbstractBatch with a FailureListener. |
DefaultBatch(DatabaseEngine de,
java.lang.String name,
int batchSize,
long batchTimeout,
long maxAwaitTimeShutdown,
FailureListener listener)
Creates a new instance of
DefaultBatch. |
DefaultBatch(DatabaseEngine de,
java.lang.String name,
int batchSize,
long batchTimeout,
long maxAwaitTimeShutdown,
FailureListener listener,
int maxFlushRetries,
long flushRetryDelay)
Creates a new instance of
DefaultBatch. |
| Modifier and Type | Method and Description |
|---|---|
AbstractBatch |
DatabaseEngine.createBatch(int batchSize,
long batchTimeout,
java.lang.String batchName,
FailureListener failureListener)
Creates a new batch that periodically flushes a batch.
|
AbstractBatch |
AbstractDatabaseEngine.createBatch(int batchSize,
long batchTimeout,
java.lang.String batchName,
FailureListener failureListener) |
Copyright © 2018 Feedzai. All Rights Reserved.