Class IdentitySharedExclusiveLock


  • public class IdentitySharedExclusiveLock
    extends Object
    A simple shared/exclusive lock for a realm identity.
    Author:
    Farah Juma
    • Constructor Detail

      • IdentitySharedExclusiveLock

        public IdentitySharedExclusiveLock()
    • Method Detail

      • lockExclusive

        public 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
      • lockShared

        public 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