Created
October 15, 2016 19:41
-
-
Save xdom/c87089ada815dab9f7f289e02081a9c1 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
LockIdentifier lock = revokes.take(); | |
OwnerId ownerId = lock.getOwnerId(); | |
LockCacheConnector lockCache = (LockCacheConnector) LocateRegistry.getRegistry( | |
ownerId.getAddress().getHostAddress(), ownerId.getPort() | |
).lookup(DefaultLockCache.BINDING_NAME); | |
lockCache.revoke(lock.getLockId()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment