sendRecoveryMsgs(dlock.getDistributionManager(), batches, owner, grantor);
/** Constructs new instance of transaction lock service */ TXLockServiceImpl(String name) { InternalDistributedSystem sys = InternalDistributedSystem.getAnyInstance(); if (sys == null) { throw new IllegalStateException(LocalizedStrings.TXLockServiceImpl_TXLOCKSERVICE_CANNOT_BE_CREATED_UNTIL_CONNECTED_TO_DISTRIBUTED_SYSTEM.toLocalizedString()); } sys.getCancelCriterion().checkCancelInProgress(null); this.system = sys; this.recoveryLock = new StoppableReentrantReadWriteLock(sys.getCancelCriterion()); this.dlock = (DLockService) DLockService.create( name, sys, true /*distributed*/, true /*destroyOnDisconnect*/, true /*automateFreeResources*/); this.dlock.setDLockRecoverGrantorMessageProcessor( new TXRecoverGrantorMessageProcessor()); this.dlock.setDLockLessorDepartureHandler( new TXLessorDepartureHandler()); }