protected void destroyProcessor() { if (logger.isDebugEnabled()) { logger.debug("Destroying dispatcher"); } try { try { if (this.queue.peek() != null) { logger.warn(LocalizedMessage.create(LocalizedStrings.GatewayImpl_DESTROYING_GATEWAYEVENTDISPATCHER_WITH_ACTIVELY_QUEUED_DATA)); } } catch (InterruptedException e) { /* * ignore, */ // TODO if this won't be thrown, assert it. } } catch (CacheException ignore) { // just checking in case we should log a warning } finally { this.queue.getRegion().localDestroyRegion(); if (logger.isDebugEnabled()) { logger.debug("Destroyed dispatcher"); } } }
events = this.queue.peek(batchSize, batchTimeInterval); } catch (InterruptedException e) { interrupted = true;
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"); } } }
events = this._eventQueue.peek(batchSize, batchTimeInterval);
events = this.queue.peek(batchSize, batchTimeInterval); } catch (InterruptedException e) { interrupted = true;
if (this.queue.peek() != null) { getLogger() .warning(
try { try { while (this._eventQueue.peek() != null && numberOfPeeks != MAXIMUM_SHUTDOWN_PEEKS) { numberOfPeeks++;