| Package | Description |
|---|---|
| com.feedzai.commons.sql.abstraction | |
| com.feedzai.commons.sql.abstraction.batch |
Contains a batch to periodically flushes to the database.
|
| com.feedzai.commons.sql.abstraction.batch.impl | |
| com.feedzai.commons.sql.abstraction.listeners |
The listeners interfaces for the pdb.
|
| com.feedzai.commons.sql.abstraction.listeners.impl |
Implementations of listeners for pdb.
|
| Modifier and Type | Method and Description |
|---|---|
void |
FailureListener.onFailure(BatchEntry[] rowsFailed)
Deprecated.
Callback indicating that one or more rows have failed to be persisted.
|
| Modifier and Type | Field and Description |
|---|---|
protected LinkedList<BatchEntry> |
AbstractBatch.buffer
EntityEntry buffer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
PdbBatch.add(BatchEntry batchEntry)
Adds the entry to the batch.
|
void |
AbstractBatch.add(BatchEntry batchEntry)
Adds the fields to the batch.
|
void |
AbstractBatch.onFlushFailure(BatchEntry[] entries)
Notifies about the pending entries on flush failure.
|
void |
AbstractBatch.onFlushSuccess(BatchEntry[] entries)
Notifies about succeeded entries on flush success.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
AbstractPdbBatch.processBatch(DatabaseEngine de,
List<BatchEntry> batchEntries)
Processes all batch entries.
|
| Modifier and Type | Field and Description |
|---|---|
protected BlockingQueue<BatchEntry> |
MultithreadedBatch.buffer
A buffer of
batch entries. |
| Modifier and Type | Method and Description |
|---|---|
void |
MultithreadedBatch.add(BatchEntry batchEntry) |
| Modifier and Type | Method and Description |
|---|---|
void |
BatchListener.onFailure(BatchEntry[] rowsFailed)
Callback indicating that one or more rows have failed to be persisted.
|
void |
BatchListener.onSuccess(BatchEntry[] rowsSucceeded)
Callback indicating that one or more rows have succeeded to be persisted.
|
| Modifier and Type | Method and Description |
|---|---|
void |
NoopBatchListener.onFailure(BatchEntry[] rowsFailed) |
void |
NoopBatchListener.onSuccess(BatchEntry[] rowsSucceeded) |
Copyright © 2023 Feedzai. All rights reserved.