protected void pauseDispatching() { if (this._messageDispatcher == null){ return; } // If this is the primary, pause the dispatcher (which closes its transient // fields. Otherwise, just close the transient fields. if (logger.isDebugEnabled()) { logger.debug("{}: Pausing processing", this); } //BUGFIX for BUG#38234 if(!testAndSetPaused(true) && this.isPrimary) { if (this._messageDispatcher != Thread.currentThread()) { // don't interrupt ourself to fix bug 40611 this._messageDispatcher.interrupt(); } } try { // Close transient fields closeTransientFields(); } finally { // make sure this gets called if closeTransientFields throws; see bug 40611 // Start timer scheduleDurableExpirationTask(); } }
destroyRQ(); alreadyDestroyed = true; this._messageDispatcher.interrupt(); if (this._messageDispatcher.isAlive()) { try {
protected void pauseDispatching() { if (this._messageDispatcher == null){ return; } // If this is the primary, pause the dispatcher (which closes its transient // fields. Otherwise, just close the transient fields. if (_logger.fineEnabled()) { _logger.fine(this + ": Pausing processing"); } //BUGFIX for BUG#38234 if(!testAndSetPaused(true) && this.isPrimary) { if (this._messageDispatcher != Thread.currentThread()) { // don't interrupt ourself to fix bug 40611 this._messageDispatcher.interrupt(); } } try { // Close transient fields closeTransientFields(); } finally { // make sure this gets called if closeTransientFields throws; see bug 40611 // Start timer scheduleDurableExpirationTask(); } }
this._messageDispatcher.interrupt(); if (this._messageDispatcher.isAlive()) { try {