Package org.wildfly.security.auth.realm
Class IdentitySharedExclusiveLock
- java.lang.Object
- 
- org.wildfly.security.auth.realm.IdentitySharedExclusiveLock
 
- 
 public class IdentitySharedExclusiveLock extends Object A simple shared/exclusive lock for a realm identity.- Author:
- Farah Juma
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description classIdentitySharedExclusiveLock.IdentityLockClass that represents a lock on a realm identity.
 - 
Field SummaryFields Modifier and Type Field Description private intexclusiveRequestsprivate booleanisExclusiveLockedprivate intsharedHoldCount
 - 
Constructor SummaryConstructors Constructor Description IdentitySharedExclusiveLock()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description IdentitySharedExclusiveLock.IdentityLocklockExclusive()Acquire the exclusive lock.IdentitySharedExclusiveLock.IdentityLocklockShared()Acquire a shared lock.private voidrelease(IdentitySharedExclusiveLock.IdentityLock identityLock)
 
- 
- 
- 
Method Detail- 
lockExclusivepublic IdentitySharedExclusiveLock.IdentityLock 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
 
 - 
lockSharedpublic IdentitySharedExclusiveLock.IdentityLock lockShared() Acquire a shared lock. An invocation of this method will block until the lock can be acquired.- Returns:
- a lock object representing the newly acquired lock
 
 - 
releaseprivate void release(IdentitySharedExclusiveLock.IdentityLock identityLock) 
 
- 
 
-