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