Package org.wildfly.security.auth.realm
Class IdentitySharedExclusiveLock
java.lang.Object
org.wildfly.security.auth.realm.IdentitySharedExclusiveLock
A simple shared/exclusive lock for a realm identity.
- Author:
- Farah Juma
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassClass that represents a lock on a realm identity. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAcquire the exclusive lock.Acquire a shared lock.
-
Constructor Details
-
IdentitySharedExclusiveLock
public IdentitySharedExclusiveLock()
-
-
Method Details
-
lockExclusive
Acquire the exclusive lock. An invocation of this method will block until the lock can be acquired.- Returns:
- a lock object representing the newly acquired lock
-