/** * Expected to be used by the Poller to release resources on socket * close, errors etc. */ @Override public void release(SocketWrapper<NioChannel> socket) { Processor<NioChannel> processor = connections.remove(socket.getSocket()); if (processor != null) { processor.recycle(true); recycledProcessors.push(processor); } }
/** * Expected to be used by the Poller to release resources on socket * close, errors etc. */ @Override public void release(SocketWrapper<NioChannel> socket) { Processor<NioChannel> processor = connections.remove(socket.getSocket()); if (processor != null) { processor.recycle(true); recycledProcessors.push(processor); } }
/** * Expected to be used by the handler once the processor is no longer * required. */ @Override public void release(SocketWrapper<Long> socket, Processor<Long> processor, boolean isSocketClosing, boolean addToPoller) { processor.recycle(isSocketClosing); recycledProcessors.push(processor); if (addToPoller) { ((AprEndpoint)proto.endpoint).getPoller().add( socket.getSocket().longValue(), proto.endpoint.getKeepAliveTimeout(), true, false); } }
/** * Expected to be used by the handler once the processor is no longer * required. * * @param processor Processor being released (that was associated with * the socket) */ private void release(Processor processor) { if (processor != null) { processor.recycle(); // After recycling, only instances of UpgradeProcessorBase will // return true for isUpgrade(). // Instances of UpgradeProcessorBase should not be added to // recycledProcessors since that pool is only for AJP or HTTP // processors if (!processor.isUpgrade()) { recycledProcessors.push(processor); getLog().debug("Pushed Processor [" + processor + "]"); } } }
/** * Expected to be used by the handler once the processor is no longer * required. * * @param socket * @param processor * @param isSocketClosing Not used in HTTP * @param addToPoller */ @Override public void release(SocketWrapper<Long> socket, Processor<Long> processor, boolean isSocketClosing, boolean addToPoller) { processor.recycle(isSocketClosing); recycledProcessors.push(processor); if (addToPoller && proto.endpoint.isRunning()) { ((AprEndpoint)proto.endpoint).getPoller().add( socket.getSocket().longValue(), proto.endpoint.getKeepAliveTimeout(), true, false); } }
/** * Expected to be used by the handler once the processor is no longer * required. * * @param socket Ignored for BIO * @param processor * @param isSocketClosing * @param addToPoller Ignored for BIO */ @Override public void release(SocketWrapper<Socket> socket, Processor<Socket> processor, boolean isSocketClosing, boolean addToPoller) { processor.recycle(isSocketClosing); recycledProcessors.push(processor); }
/** * Expected to be used by the handler once the processor is no longer * required. * * @param socket * @param processor * @param isSocketClosing Not used in HTTP * @param addToPoller */ @Override public void release(SocketWrapper<NioChannel> socket, Processor<NioChannel> processor, boolean isSocketClosing, boolean addToPoller) { processor.recycle(isSocketClosing); recycledProcessors.push(processor); if (addToPoller) { socket.getSocket().getPoller().add(socket.getSocket()); } }
/** * Expected to be used by the handler once the processor is no longer * required. * * @param socket Not used in BIO * @param processor * @param isSocketClosing Not used in HTTP * @param addToPoller Not used in BIO */ @Override public void release(SocketWrapper<Socket> socket, Processor<Socket> processor, boolean isSocketClosing, boolean addToPoller) { processor.recycle(isSocketClosing); recycledProcessors.push(processor); }
/** * Expected to be used by the handler once the processor is no longer * required. */ @Override public void release(SocketWrapper<NioChannel> socket, Processor<NioChannel> processor, boolean isSocketClosing, boolean addToPoller) { processor.recycle(isSocketClosing); recycledProcessors.push(processor); if (addToPoller) { socket.getSocket().getPoller().add(socket.getSocket()); } }