/** * Updates the traffic mask for a given session * * @param session * the session to update */ public final void updateTrafficMask(S session) { trafficControllingSessions.add(session); wakeup(); }
/** * Updates the traffic mask for a given session * * @param session * the session to update */ public final void updateTrafficMask(S session) { trafficControllingSessions.add(session); wakeup(); }
/** * {@inheritDoc} */ @Override public final void flush(S session) { // add the session to the queue if it's not already // in the queue, then wake up the select() if (session.setScheduledForFlush(true)) { flushingSessions.add(session); wakeup(); } }
/** * {@inheritDoc} */ public final void updateTrafficMask(T session) { scheduleTrafficControl(session); wakeup(); }
/** * {@inheritDoc} */ @Override public final void flush(S session) { // add the session to the queue if it's not already // in the queue, then wake up the select() if (session.setScheduledForFlush(true)) { flushingSessions.add(session); wakeup(); } }
/** * {@inheritDoc} */ public final void flush(T session) { if (scheduleFlush(session)) { wakeup(); } }
/** * Starts the inner Processor, asking the executor to pick a thread in its * pool. The Runnable will be renamed */ private void startupProcessor() { Processor processor = processorRef.get(); if (processor == null) { processor = new Processor(); if (processorRef.compareAndSet(null, processor)) { executor.execute(new NamePreservingRunnable(processor, threadName)); } } // Just stop the select() and start it again, so that the processor // can be activated immediately. wakeup(); }
/** * Starts the inner Processor, asking the executor to pick a thread in its * pool. The Runnable will be renamed */ private void startupProcessor() { Processor processor = processorRef.get(); if (processor == null) { processor = new Processor(); if (processorRef.compareAndSet(null, processor)) { executor.execute(new NamePreservingRunnable(processor, threadName)); } } // Just stop the select() and start it again, so that the processor // can be activated immediately. wakeup(); }
/** * Starts the inner Processor, asking the executor to pick a thread in its * pool. The Runnable will be renamed */ private void startupProcessor() { Processor processor = processorRef.get(); if (processor == null) { processor = new Processor(); if (processorRef.compareAndSet(null, processor)) { executor.execute(new NamePreservingRunnable(processor, threadName)); } } // Just stop the select() and start it again, so that the processor // can be activated immediately. wakeup(); }
IoFilterChain filterChain = session.getFilterChain(); filterChain.fireExceptionCaught(e); wakeup(); } else { ExceptionMonitor.getInstance().exceptionCaught(e);