Package org.keycloak.models.locking
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LockAcquiringTimeoutException(String lockName, String keycloakInstanceIdentifier, Instant timeWhenAcquired)
LockAcquiringTimeoutException(String lockName, String keycloakInstanceIdentifier, Instant timeWhenAcquired, Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getKeycloakInstanceIdentifier()
String
getLockName()
Instant
getTimeWhenAcquired()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
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 bykeycloakInstanceIdentifier
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 bykeycloakInstanceIdentifier
was acquired.cause
- The cause.
-
-