public abstract class RelationalChangeRecordEmitter extends Object implements ChangeRecordEmitter
ChangeRecordEmitter implementations based on a relational database.ChangeRecordEmitter.Receiver| Modifier and Type | Field and Description |
|---|---|
private Clock |
clock |
private OffsetContext |
offsetContext |
| Constructor and Description |
|---|
RelationalChangeRecordEmitter(OffsetContext offsetContext,
Clock clock) |
| Modifier and Type | Method and Description |
|---|---|
void |
emitChangeRecords(DataCollectionSchema schema,
ChangeRecordEmitter.Receiver receiver) |
private void |
emitCreateRecord(ChangeRecordEmitter.Receiver receiver,
TableSchema tableSchema,
Envelope.Operation operation) |
private void |
emitDeleteRecord(ChangeRecordEmitter.Receiver receiver,
TableSchema tableSchema,
Envelope.Operation operation) |
private void |
emitUpdateRecord(ChangeRecordEmitter.Receiver receiver,
TableSchema tableSchema,
Envelope.Operation operation) |
protected abstract Object[] |
getNewColumnValues() |
protected abstract Object[] |
getOldColumnValues() |
protected abstract Envelope.Operation |
getOperation() |
private final OffsetContext offsetContext
private final Clock clock
public RelationalChangeRecordEmitter(OffsetContext offsetContext, Clock clock)
public void emitChangeRecords(DataCollectionSchema schema, ChangeRecordEmitter.Receiver receiver) throws InterruptedException
emitChangeRecords in interface ChangeRecordEmitterInterruptedExceptionprivate void emitCreateRecord(ChangeRecordEmitter.Receiver receiver, TableSchema tableSchema, Envelope.Operation operation) throws InterruptedException
InterruptedExceptionprivate void emitUpdateRecord(ChangeRecordEmitter.Receiver receiver, TableSchema tableSchema, Envelope.Operation operation) throws InterruptedException
InterruptedExceptionprivate void emitDeleteRecord(ChangeRecordEmitter.Receiver receiver, TableSchema tableSchema, Envelope.Operation operation) throws InterruptedException
InterruptedExceptionprotected abstract Envelope.Operation getOperation()
protected abstract Object[] getOldColumnValues()
protected abstract Object[] getNewColumnValues()
Copyright © 2018 JBoss by Red Hat. All rights reserved.