public interface DriverConnectable<SELF extends DriverConnectable<SELF,CONFIG>,CONFIG extends MongockConfiguration> extends Configurable<SELF,CONFIG>, SelfInstanstiator<SELF>
| Modifier and Type | Method and Description |
|---|---|
default SELF |
dontFailIfCannotAcquireLock()
Indicates that in case the lock cannot be obtained, therefore the migration is not executed, Mongock won't throw
any exception and the application will carry on.
|
ConnectionDriver |
getDriver()
Retrieve the connection driver
Mandatory
|
SELF |
setDriver(ConnectionDriver driver)
Set the specific connection driver
Mandatory
|
getConfig, getType, getVersion, setConfiggetInstanceSELF setDriver(ConnectionDriver driver)
driver - connection driverConnectionDriver getDriver()
default SELF dontFailIfCannotAcquireLock()
Only set this to false if the changes are not mandatory and the application can work without them. Leave it true otherwise. Optional Default value true.
Copyright © 2025. All rights reserved.