Class StandardConnectionLockTimeoutStrategies

java.lang.Object
org.hibernate.dialect.lock.spi.StandardConnectionLockTimeoutStrategies

@Incubating(since="7.1", group="dialect-locking") @SPI(USE) public final class StandardConnectionLockTimeoutStrategies extends Object
Creates standard connection-level lock-timeout strategies.
Since:
8.0
  • Method Details

    • mysql

      public static ConnectionLockTimeoutStrategy mysql(int waitForeverValue)
      Creates the MySQL strategy using the database's wait-forever sentinel.
      Parameters:
      waitForeverValue - the positive timeout value representing an effectively unbounded wait