this.removalThread = new BatchRemovalThread((GemFireCacheImpl)abstractSender.getCache()); this.removalThread.start(); this.sender = abstractSender; if (logger.isDebugEnabled()) {
if (checkCancelled()) { break; if (checkCancelled()) { break; if (checkCancelled()) { break;
/** * shutdown this thread and the caller thread will join this thread */ public void shutdown() { this.shutdown = true; this.interrupt(); boolean interrupted = Thread.interrupted(); try { this.join(15 * 1000); } catch (InterruptedException e) { interrupted = true; } finally { if (interrupted) { Thread.currentThread().interrupt(); } } if (this.isAlive()) { logger .warning(LocalizedStrings.HARegionQueue_QUEUEREMOVALTHREAD_IGNORED_CANCELLATION); } } }
if (checkCancelled()) { break; if (checkCancelled()) { break; if (checkCancelled()) { break;
this.stats = abstractSender.getStatistics(); initializeRegion(abstractSender, listener); this.removalThread = new BatchRemovalThread((GemFireCacheImpl)abstractSender.getCache()); this.removalThread.start(); this.sender = (SerialGatewaySenderImpl) abstractSender; if (this.logger.fineEnabled()) {
/** * shutdown this thread and the caller thread will join this thread */ public void shutdown() { this.shutdown = true; this.interrupt(); boolean interrupted = Thread.interrupted(); try { this.join(15 * 1000); } catch (InterruptedException e) { interrupted = true; } finally { if (interrupted) { Thread.currentThread().interrupt(); } } if (this.isAlive()) { logger.warn(LocalizedMessage.create(LocalizedStrings.HARegionQueue_QUEUEREMOVALTHREAD_IGNORED_CANCELLATION)); } } }
/** * Constructor : Creates and initializes the thread */ public BatchRemovalThread(GemFireCacheImpl c) { this.setDaemon(true); this.cache = c; }
public void cleanUp() { if (this.removalThread != null) { this.removalThread.shutdown(); } }
/** * Constructor : Creates and initializes the thread */ public BatchRemovalThread(GemFireCacheImpl c) { this.setDaemon(true); this.cache = c; }
public void cleanUp() { if (this.removalThread != null) { this.removalThread.shutdown(); } }