Created
October 15, 2016 19:42
-
-
Save xdom/3b5e30dafc5da4b4f2f6872ae545e6a3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public void revoke(String lockId) throws RemoteException { | |
revokes.add(lockId); | |
if (locks.containsKey(lockId) && locks.get(lockId).getState() == LockState.FREE) { | |
release(lockId); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment