Class MySQLNamedLockTemplate

java.lang.Object
org.flywaydb.database.mysql.MySQLNamedLockTemplate

public class MySQLNamedLockTemplate extends Object
Spring-like template for executing with MySQL named locks.
  • Method Details

    • execute

      public <T> T execute(Callable<T> callable)
      Executes this callback with a named lock.
      Parameters:
      callable - The callback to execute.
      Returns:
      The result of the callable code.