@Override public void shutdown() { super.shutdown(); requestLock.lock(); try { this.shutdown = true; for (final FlowFileRequest request : activeRequests) { final CommunicationsSession commsSession = request.getPeer().getCommunicationsSession(); if (commsSession != null) { commsSession.interrupt(); } } } finally { requestLock.unlock(); } }
@Override public void close() throws IOException { taskExecutor.shutdown(); peerSelector.clear(); for (final HttpClientTransaction transaction : activeTransactions) { transaction.getCommunicant().getCommunicationsSession().interrupt(); } } }
public void shutdown() { shutdown = true; taskExecutor.shutdown(); peerSelector.clear(); for (final EndpointConnection conn : activeConnections) { conn.getPeer().getCommunicationsSession().interrupt(); } for (final BlockingQueue<EndpointConnection> connectionQueue : connectionQueueMap.values()) { EndpointConnection state; while ((state = connectionQueue.poll()) != null) { terminate(state); } } }
final CommunicationsSession commsSession = flowFileRequest.getPeer().getCommunicationsSession(); if (commsSession != null) { commsSession.interrupt();
@Override public void shutdown() { super.shutdown(); requestLock.lock(); try { this.shutdown = true; for (final FlowFileRequest request : activeRequests) { final CommunicationsSession commsSession = request.getPeer().getCommunicationsSession(); if (commsSession != null) { commsSession.interrupt(); } } } finally { requestLock.unlock(); } }
final CommunicationsSession commsSession = flowFileRequest.getPeer().getCommunicationsSession(); if (commsSession != null) { commsSession.interrupt();