Class RedisSchemaHistory
java.lang.Object
io.debezium.relational.history.AbstractSchemaHistory
io.debezium.storage.redis.history.RedisSchemaHistory
- All Implemented Interfaces:
SchemaHistory
A
SchemaHistory implementation that stores the schema history in Redis.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate RedisClientprivate RedisSchemaHistoryConfigprivate Durationprivate static final org.slf4j.Loggerprivate Durationprivate final DocumentReaderprivate final AtomicBooleanprivate final DocumentWriterFields inherited from class io.debezium.relational.history.AbstractSchemaHistory
ALL_FIELDS, INTERNAL_CONNECTOR_CLASS, INTERNAL_CONNECTOR_ID, INTERNAL_PREFER_DDL, loggerFields inherited from interface io.debezium.relational.history.SchemaHistory
CONFIGURATION_FIELD_PREFIX_STRING, DDL_FILTER, NAME, SKIP_UNPARSEABLE_DDL_STATEMENTS, STORE_ONLY_CAPTURED_TABLES_DDL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(Configuration config, HistoryRecordComparator comparator, SchemaHistoryListener listener, boolean useCatalogBeforeSchema) (package private) voidconnect()booleanexists()protected voidrecoverRecords(Consumer<HistoryRecord> records) voidstart()voidstop()booleanprotected voidstoreRecord(HistoryRecord record) Methods inherited from class io.debezium.relational.history.AbstractSchemaHistory
initializeStorage, record, record, recover, skipUnparseableDdlStatements, storeOnlyCapturedTablesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.debezium.relational.history.SchemaHistory
recover, recover
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
initialRetryDelay
-
maxRetryDelay
-
writer
-
reader
-
running
-
client
-
config
-
-
Constructor Details
-
RedisSchemaHistory
public RedisSchemaHistory()
-
-
Method Details
-
connect
void connect() -
configure
public void configure(Configuration config, HistoryRecordComparator comparator, SchemaHistoryListener listener, boolean useCatalogBeforeSchema) - Specified by:
configurein interfaceSchemaHistory- Overrides:
configurein classAbstractSchemaHistory
-
start
public void start()- Specified by:
startin interfaceSchemaHistory- Overrides:
startin classAbstractSchemaHistory
-
storeRecord
- Specified by:
storeRecordin classAbstractSchemaHistory- Throws:
SchemaHistoryException
-
stop
public void stop()- Specified by:
stopin interfaceSchemaHistory- Overrides:
stopin classAbstractSchemaHistory
-
recoverRecords
- Specified by:
recoverRecordsin classAbstractSchemaHistory
-
storageExists
public boolean storageExists() -
exists
public boolean exists()
-