private GatewaySenderAdvisor(DistributionAdvisee sender, LogWriterI18n logger) { super(sender); this.sender = (AbstractGatewaySender)sender; this.logger = logger; this.lockToken = getDLockServiceName() + "-token"; }
private GatewaySenderAdvisor(DistributionAdvisee sender) { super(sender); this.sender = (AbstractGatewaySender)sender; this.lockToken = getDLockServiceName() + "-token"; }
public void initDLockService() { InternalDistributedSystem ds = ((GemFireCacheImpl)this.sender.getCache()) .getDistributedSystem(); String dlsName = getDLockServiceName(); this.lockService = DistributedLockService.getServiceNamed(dlsName); if (this.lockService == null) { this.lockService = DLockService.create(dlsName, ds, true, true, true); } Assert.assertTrue(this.lockService != null); if (logger.isDebugEnabled()) { logger.debug("{}: Obtained DistributedLockService: {}", this, this.lockService); } }
try { DistributedLockService .destroy(getSenderAdvisor().getDLockServiceName()); } catch (IllegalArgumentException e) {
public void initDLockService() { InternalDistributedSystem ds = ((GemFireCacheImpl)this.sender.getCache()) .getDistributedSystem(); String dlsName = getDLockServiceName(); this.lockService = DistributedLockService.getServiceNamed(dlsName); if (this.lockService == null) { this.lockService = DLockService.create(dlsName, ds, true, true, true); } Assert.assertTrue(this.lockService != null); if (logger.fineEnabled()) { logger.fine(this + ": Obtained DistributedLockService: " + this.lockService); } }
try { DistributedLockService .destroy(getSenderAdvisor().getDLockServiceName()); } catch (IllegalArgumentException e) {