D
- Driver or DataSourcepublic interface SynchronizationContext<D>
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes any open database connections and shuts down the executor service.
|
java.util.Set<Database<D>> |
getActiveDatabaseSet()
Returns a snapshot of the activate databases in the cluster at the time synchronization started.
|
java.sql.Connection |
getConnection(Database<D> database)
Returns a connection to the specified database.
|
Dialect |
getDialect()
Returns the dialect of the cluster.
|
java.util.concurrent.ExecutorService |
getExecutor()
An executor service for executing tasks asynchronously.
|
Database<D> |
getSourceDatabase()
Returns the database from which to synchronize.
|
DatabaseProperties |
getSourceDatabaseProperties()
Returns a cache of database meta data for the source database.
|
Database<D> |
getTargetDatabase()
Returns the database to synchronize.
|
DatabaseProperties |
getTargetDatabaseProperties()
Returns a cache of database meta data for the target database.
|
java.sql.Connection getConnection(Database<D> database) throws java.sql.SQLException
database
- a database to which to connectjava.sql.SQLException
- if connection could not be obtainedDatabase<D> getSourceDatabase()
Database<D> getTargetDatabase()
java.util.Set<Database<D>> getActiveDatabaseSet()
DatabaseProperties getSourceDatabaseProperties()
DatabaseProperties getTargetDatabaseProperties()
Dialect getDialect()
java.util.concurrent.ExecutorService getExecutor()
void close()