Class LockAcquiringTimeoutException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.keycloak.models.locking.LockAcquiringTimeoutException
All Implemented Interfaces:
Serializable

public final class LockAcquiringTimeoutException extends RuntimeException
This exception is thrown when acquiring a lock times out.
See Also:
  • Constructor Details

    • LockAcquiringTimeoutException

      public LockAcquiringTimeoutException(String lockName, String keycloakInstanceIdentifier, Instant timeWhenAcquired)
      Parameters:
      lockName - Identifier of a lock whose acquiring was unsuccessful.
      keycloakInstanceIdentifier - Identifier of a Keycloak instance that is currently holding the lock.
      timeWhenAcquired - Time instant when the lock held by keycloakInstanceIdentifier was acquired.
    • LockAcquiringTimeoutException

      public LockAcquiringTimeoutException(String lockName, String keycloakInstanceIdentifier, Instant timeWhenAcquired, Throwable cause)
      Parameters:
      lockName - Identifier of a lock whose acquiring was unsuccessful.
      keycloakInstanceIdentifier - Identifier of a Keycloak instance that is currently holding the lock.
      timeWhenAcquired - Time instant when the lock held by keycloakInstanceIdentifier was acquired.
      cause - The cause.
  • Method Details

    • getLockName

      public String getLockName()
    • getKeycloakInstanceIdentifier

      public String getKeycloakInstanceIdentifier()
    • getTimeWhenAcquired

      public Instant getTimeWhenAcquired()