Package liquibase.executor
Class ExecutorService
- All Implemented Interfaces:
PluginFactory,SingletonObject
-
Method Summary
Modifier and TypeMethodDescriptionvoidclearExecutor(String name, Database database) voidclearExecutor(Database database) Deprecated.Please use clearExecutor(name, database)booleanexecutorExists(String name, Database database) Checks if an executor exists for the given name and database.getExecutor(String name, Database database) Retrieves a named executor for the specified database.getExecutor(Database database) Deprecated.Please usegetExecutor(String, Database)instead.protected intgetPriority(Executor executor, Object... args) Returns the priority of the given object based on the passed args array.voidreset()voidsetExecutor(String name, Database database, Executor executor) voidsetExecutor(Database database, Executor executor) Sets the executor for the given database with the default name "jdbc".Methods inherited from class liquibase.plugin.AbstractPluginFactory
findAllInstances, getPlugin, getPlugins, register, removeInstance
-
Method Details
-
getPluginClass
- Specified by:
getPluginClassin classAbstractPluginFactory<Executor>
-
getPriority
Description copied from class:AbstractPluginFactoryReturns the priority of the given object based on the passed args array. The args are created as part of the custom public getPlugin method in implementations are passed throughAbstractPluginFactory.getPlugin(Object...)- Specified by:
getPriorityin classAbstractPluginFactory<Executor>
-
getExecutor
Retrieves a named executor for the specified database.- Parameters:
name- the name of the executordatabase- the database for which to retrieve the executor- Returns:
- the
Executorassociated with the given name and database - Throws:
UnexpectedLiquibaseException- if there was an error retrieving the executor
-
executorExists
Checks if an executor exists for the given name and database.- Parameters:
name- the name of the executordatabase- the database to which the executor is connected- Returns:
trueif an executor exists for the given name and database,falseotherwise
-
getExecutor
Deprecated.Please usegetExecutor(String, Database)instead.Returns anExecutorfor the specified database and name. This method is deprecated; please usegetExecutor(String, Database)instead.- Parameters:
database- theDatabaseto execute the statements on- Returns:
Executorfor the specified database and name
-
setExecutor
Sets the executor for the given database with the default name "jdbc". If an executor with the same name and database already exists, it will be replaced by the new one.- Parameters:
database- theDatabasefor which the executor is setexecutor- theExecutorto set
-
setExecutor
-
clearExecutor
Deprecated.Please use clearExecutor(name, database)- Parameters:
database-
-
clearExecutor
-
reset
public void reset()
-