Example usage for org.apache.http.nio NHttpConnection shutdown

List of usage examples for org.apache.http.nio NHttpConnection shutdown

Introduction

In this page you can find the example usage for org.apache.http.nio NHttpConnection shutdown.

Prototype

void shutdown() throws IOException;

Source Link

Usage

From source file:org.jclouds.http.httpnio.pool.NioHttpCommandConnectionPool.java

@Override
public void shutdownConnection(NHttpConnection conn) {
    if (conn.getStatus() == NHttpConnection.ACTIVE) {
        try {/* w ww.  j  a  va  2 s . c  o  m*/
            conn.shutdown();
        } catch (IOException e) {
            logger.error(e, "Error shutting down connection");
        }
    }
}