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 Stringstatic Collection<Field>private RedisClientprivate Configurationprivate static final Stringprivate Integerstatic final Integerstatic final Integerstatic final Integerstatic final Integer(package private) Durationprivate static final org.slf4j.Logger(package private) Durationprivate Stringstatic final Fieldstatic final Fieldstatic final Fieldstatic final Fieldstatic final Fieldstatic final Fieldstatic final Fieldstatic final Fieldstatic final Fieldprivate static final Fieldprivate static final Fieldprivate static final Fieldprivate static final Fieldprivate final DocumentReaderprivate Stringprivate final AtomicBooleanprivate Integerprivate booleanprivate Stringprivate booleanprivate longprivate booleanprivate longprivate final DocumentWriterFields inherited from class io.debezium.relational.history.AbstractSchemaHistory
INTERNAL_CONNECTOR_CLASS, INTERNAL_CONNECTOR_ID, INTERNAL_PREFER_DDL, loggerFields inherited from interface io.debezium.relational.history.SchemaHistory
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
-
CONFIGURATION_FIELD_PREFIX_STRING
- See Also:
-
LOGGER
private static final org.slf4j.Logger LOGGER -
PROP_ADDRESS
-
PROP_SSL_ENABLED
-
PROP_USER
-
PROP_PASSWORD
-
PROP_KEY
-
DEFAULT_RETRY_INITIAL_DELAY
-
PROP_RETRY_INITIAL_DELAY
-
DEFAULT_RETRY_MAX_DELAY
-
PROP_RETRY_MAX_DELAY
-
DEFAULT_CONNECTION_TIMEOUT
-
PROP_CONNECTION_TIMEOUT
-
DEFAULT_SOCKET_TIMEOUT
-
PROP_SOCKET_TIMEOUT
-
PROP_WAIT_ENABLED
-
PROP_WAIT_TIMEOUT
-
PROP_WAIT_RETRY_ENABLED
-
PROP_WAIT_RETRY_DELAY
-
initialRetryDelay
Duration initialRetryDelay -
maxRetryDelay
Duration maxRetryDelay -
ALL_FIELDS
-
writer
-
reader
-
running
-
config
-
redisKeyName
-
address
-
user
-
password
-
sslEnabled
private boolean sslEnabled -
connectionTimeout
-
socketTimeout
-
waitEnabled
private boolean waitEnabled -
waitTimeout
private long waitTimeout -
waitRetryEnabled
private boolean waitRetryEnabled -
waitRetryDelay
private long waitRetryDelay -
client
-
-
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()
-