public void closeProcessor() { if (logger.isDebugEnabled()) { logger.debug("Closing dispatcher"); } try { if (this.sender.isPrimary() && this.queue.size() > 0) { logger.warn(LocalizedMessage.create(LocalizedStrings.GatewayImpl_DESTROYING_GATEWAYEVENTDISPATCHER_WITH_ACTIVELY_QUEUED_DATA)); } } catch (RegionDestroyedException ignore) { } catch (CancelException ignore) { } catch (CacheException ignore) { // just checking in case we should log a warning } finally { this.queue.close(); if (logger.isDebugEnabled()) { logger.debug("Closed dispatcher"); } } }
public void closeProcessor() { if (getLogger().fineEnabled()) { getLogger().fine("Closing dispatcher"); } try { if (this.sender.isPrimary() && this.queue.size() > 0) { getLogger() .warning( LocalizedStrings.GatewayImpl_DESTROYING_GATEWAYEVENTDISPATCHER_WITH_ACTIVELY_QUEUED_DATA); } } catch (RegionDestroyedException ignore) { } catch (CancelException ignore) { } catch (CacheException ignore) { // just checking in case we should log a warning } finally { this.queue.close(); if (getLogger().fineEnabled()) { getLogger().fine("Closed dispatcher"); } } }
protected void closeProcessor() { if (getLogger().fineEnabled()) { getLogger().fine("Closing dispatcher"); } try { try { if (this._eventQueue.peek() != null) { getLogger() .warning(LocalizedStrings.GatewayImpl_DESTROYING_GATEWAYEVENTDISPATCHER_WITH_ACTIVELY_QUEUED_DATA); } } catch (InterruptedException e) { /* * ignore, this will never be thrown by * SingleWriteSingleReadRegionQueue */ // TODO if this won't be thrown, assert it. } } catch (CacheException ignore) { // just checking in case we should log a warning } finally { this._eventQueue.close(); if (getLogger().fineEnabled()) { getLogger().fine("Closed dispatcher"); } } }