@Override void close() { this.dm.removeMembershipListener(this); }
@Override void close() { this.dm.removeMembershipListener(this); }
/** * Unregisters this processor as a membership listener * @since 5.7 */ protected void removeListener() { try { getDistributionManager().removeMembershipListener(this); } catch (DistributedSystemDisconnectedException e) { // ignore } }
/** * Unregisters this processor as a membership listener * @since 5.7 */ protected void removeListener() { try { getDistributionManager().removeMembershipListener(this); } catch (DistributedSystemDisconnectedException e) { // ignore } } /**
/** * Free up resources used by this advisor once it is no longer being used. * @since 3.5 */ public void close() { try { synchronized(this) { this.membershipClosed = true; synchronized(this.opCountLock) { this.previousVersionOpCount = 0; this.currentVersionOpCount = 0; } } getDistributionManager().removeMembershipListener(this.ml); } catch (CancelException e) { // if distribution has stopped, above is a no-op. } catch (IllegalArgumentException ignore) { // this is thrown if the listener is no longer registered } }
/** * Free up resources used by this advisor once it is no longer being used. * @since 3.5 */ public void close() { try { synchronized(this) { this.membershipClosed = true; this.previousVersionOpCount.set(0); this.currentVersionOpCount = 0; } getDistributionManager().removeMembershipListener(this.ml); } catch (CancelException e) { // if distribution has stopped, above is a no-op. } catch (IllegalArgumentException ignore) { // this is thrown if the listener is no longer registered } }
public void unregister() { dm.removeMembershipListener(this); keeper.remove(id); abort(); }
public void unregister() { dm.removeMembershipListener(this); keeper.remove(id); abort(); }
@Override protected final void removeListener() { try { if (!this.allowExecutionOnAdminMembers) { getDistributionManager().removeMembershipListener(this); } else { getDistributionManager().removeAllMembershipListener(this); } } catch (DistributedSystemDisconnectedException e) { // ignore } }
@Override protected final void removeListener() { try { if (!this.allowExecutionOnAdminMembers) { getDistributionManager().removeMembershipListener(this); } else { getDistributionManager().removeAllMembershipListener(this); } } catch (DistributedSystemDisconnectedException e) { // ignore } }
@Override protected final void removeListener() { try { if (!this.allowExecutionOnAdminMembers) { getDistributionManager().removeMembershipListener(this); } else { getDistributionManager().removeAllMembershipListener(this); } } catch (DistributedSystemDisconnectedException e) { // ignore } }
/** * This method is invoked after isDestroyed has been set to true */ protected void postDestroyRegion(boolean destroyDiskRegion, RegionEventImpl event) { if (this.diskRegion != null) { if (destroyDiskRegion) { this.diskRegion.endDestroy(this); } else { this.diskRegion.close(this); } } if (this.versionVector != null) { try { this.cache.getDistributionManager().removeMembershipListener(this.versionVector); } catch (CancelException e) { // ignore: cache close will remove the membership listener } } }
/** * This method is invoked after isDestroyed has been set to true */ protected void postDestroyRegion(boolean destroyDiskRegion, RegionEventImpl event) { if (this.diskRegion != null) { if (destroyDiskRegion) { this.diskRegion.endDestroy(this); } else { this.diskRegion.close(this); } } if (this.versionVector != null) { try { this.cache.getDistributionManager().removeMembershipListener(this.versionVector); } catch (CancelException e) { // ignore: cache close will remove the membership listener } } }
system.getDistributionManager().removeMembershipListener(listener);
/** * Shuts down the grantor thread and changes internal state to destroyed. */ private void makeDestroyed() { try { this.thread.shutdown(); this.state = DESTROYED; if (logger.isTraceEnabled(LogMarker.DLS)) { logger.trace(LogMarker.DLS, "DLockGrantor {} state is DESTROYED", this.dlock.getName()); } if (this.untilDestroyed.getCount() > 0) { this.untilDestroyed.countDown(); } if (this.whileInitializing.getCount() > 0) { this.whileInitializing.countDown(); } this.dlock.getDistributionManager() .removeMembershipListener(this.membershipListener); } finally { this.dlock.getStats().incGrantors(-1); } }
synchronized (this.myMembershipListenerLock) { if (this.myMembershipListener != null) { dm.removeMembershipListener(this.myMembershipListener);
system.getDistributionManager().removeMembershipListener(listener);
synchronized (this.myMembershipListenerLock) { if (this.myMembershipListener != null) { dm.removeMembershipListener(this.myMembershipListener);
/** * Shuts down the grantor thread and changes internal state to destroyed. */ private void makeDestroyed() { try { this.thread.shutdown(); this.state = DESTROYED; if (getLogWriter().fineEnabled()) { getLogWriter().fine("DLockGrantor " + this.dlock.getName() + " state is DESTROYED"); } if (this.untilDestroyed.getCount() > 0) { this.untilDestroyed.countDown(); } if (this.whileInitializing.getCount() > 0) { this.whileInitializing.countDown(); } this.dlock.getDistributionManager() .removeMembershipListener(this.membershipListener); } finally { this.dlock.getStats().incGrantors(-1); } }