public class UserIdentityLock extends java.lang.Object
Constructor and Description |
---|
UserIdentityLock() |
Modifier and Type | Method and Description |
---|---|
void |
acquire(UserIdentity userId)
Blocks until the lock for the given user identity has been acquired.
|
void |
release(UserIdentity userId)
Release the lock for the given user identity.
|
public UserIdentityLock()
public void acquire(UserIdentity userId) throws java.lang.IllegalArgumentException
userId
- java.lang.IllegalArgumentException
- on invalid user identitypublic void release(UserIdentity userId) throws java.lang.IllegalArgumentException
userId
- java.lang.IllegalArgumentException
Copyright © 2015 Tampere University of Technology, Pori Department.