/** * Destroys the PartitionedRegion distributed lock service when closing the cache. Caller must be * synchronized on this GemFireCache. */ private void destroyPartitionedRegionLockService() { try { DistributedLockService.destroy(PartitionedRegionHelper.PARTITION_LOCK_SERVICE_NAME); } catch (IllegalArgumentException ignore) { // DistributedSystem.disconnect may have already destroyed the DLS } }
/** * Destroys the GatewaySender distributed lock service when closing the cache. Caller must be * synchronized on this GemFireCache. */ private void destroyGatewaySenderLockService() { if (DistributedLockService.getServiceNamed(AbstractGatewaySender.LOCK_SERVICE_NAME) != null) { try { DistributedLockService.destroy(AbstractGatewaySender.LOCK_SERVICE_NAME); } catch (IllegalArgumentException ignore) { // DistributedSystem.disconnect may have already destroyed the DLS } } }
DistributedLockService.destroy(getSenderAdvisor().getDLockServiceName()); } catch (IllegalArgumentException e) {
DistributedLockService.destroy(getSenderAdvisor().getDLockServiceName()); } catch (IllegalArgumentException e) {