@ThreadSafe public final class MemoryDatabaseHistory extends AbstractDatabaseHistory
DatabaseHistory implementation that stores the schema history in a local file.| Modifier and Type | Field and Description |
|---|---|
private FunctionalReadWriteLock |
lock |
private List<HistoryRecord> |
records |
config, loggerCONFIGURATION_FIELD_PREFIX_STRING, DDL_FILTER, NAME, SKIP_UNPARSEABLE_DDL_STATEMENTS, STORE_ONLY_MONITORED_TABLES_DDL| Constructor and Description |
|---|
MemoryDatabaseHistory()
Create an instance that keeps the history in memory.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
exists()
Determines if the DatabaseHistory entity exists
|
protected void |
recoverRecords(Consumer<HistoryRecord> records) |
protected void |
storeRecord(HistoryRecord record) |
String |
toString() |
configure, initializeStorage, record, record, recover, start, stopprivate final List<HistoryRecord> records
private final FunctionalReadWriteLock lock
public MemoryDatabaseHistory()
protected void storeRecord(HistoryRecord record)
storeRecord in class AbstractDatabaseHistoryprotected void recoverRecords(Consumer<HistoryRecord> records)
recoverRecords in class AbstractDatabaseHistorypublic boolean exists()
DatabaseHistoryCopyright © 2019 JBoss by Red Hat. All rights reserved.