Interface SignInMethodsLock


public interface SignInMethodsLock
Port that serializes the removals of the sign-in methods of one account (unlinking an identity, unbinding a certificate), so that two concurrent removals cannot each count the other's method as remaining and together leave the account with no way to sign in.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    lock(UUID userId)
    Takes the lock of an account until the caller's transaction ends; a second caller for the same account waits.
  • Method Details

    • lock

      void lock(UUID userId)
      Takes the lock of an account until the caller's transaction ends; a second caller for the same account waits.
      Parameters:
      userId - identifier of the account.