@Override public void basicBridgeDestroy(Object key, Object p_callbackArg, ClientProxyMembershipID memberId, boolean fromClient, EntryEventImpl clientEvent) throws TimeoutException, EntryNotFoundException, CacheWriterException { Lock lock = getDistributedLockIfGlobal(key); try { super.basicBridgeDestroy(key, p_callbackArg, memberId, fromClient, clientEvent); } finally { if (lock != null) { logger.debug("releasing distributed lock on {}", key); lock.unlock(); getLockService().freeResources(key); } } }
@Override public void basicBridgeRemove(Object key, Object expectedOldValue, Object p_callbackArg, ClientProxyMembershipID memberId, boolean fromClient, EntryEventImpl clientEvent) throws TimeoutException, EntryNotFoundException, CacheWriterException { Lock lock = getDistributedLockIfGlobal(key); try { super.basicBridgeRemove(key, expectedOldValue, p_callbackArg, memberId, fromClient, clientEvent); } finally { if (lock != null) { logger.debug("releasing distributed lock on {}", key); lock.unlock(); getLockService().freeResources(key); } } }
@Override public void localDestroy(Object key, Object aCallbackArgument) throws EntryNotFoundException { super.localDestroy(key, aCallbackArgument); if (getScope().isGlobal()) { try { this.getLockService().freeResources(key); } catch (LockServiceDestroyedException ignore) { } } }
@Override boolean evictDestroy(EvictableEntry entry) { boolean evictDestroyWasDone = super.evictDestroy(entry); if (evictDestroyWasDone) { if (this.scope.isGlobal()) { try { getLockService().freeResources(entry.getKey()); } catch (LockServiceDestroyedException ignore) { } } } return evictDestroyWasDone; }
@Override public void localDestroyNoCallbacks(Object key) { super.localDestroyNoCallbacks(key); if (getScope().isGlobal()) { try { this.getLockService().freeResources(key); } catch (LockServiceDestroyedException ignore) { } } }
@Override public void unlock() { try { ReplyProcessor21.forceSevereAlertProcessing(); getLockService().unlock(this.key); if (!DistributedRegion.this.entries.containsKey(this.key)) { getLockService().freeResources(this.key); } } catch (IllegalStateException ex) { lockCheckReadiness(); throw ex; } finally { ReplyProcessor21.unforceSevereAlertProcessing(); } }
getLockService().freeResources(event.getKey()); } catch (LockServiceDestroyedException ignore) {