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

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

Introduction

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

Prototype

int getSocketTimeout();

Source Link

Usage

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

public void connectionTimeout(NHttpConnection conn) {
    String message = String.format("Timeout on : %s - timeout %d", getTarget(), conn.getSocketTimeout());
    logger.warn(message);//w w w  . ja v  a 2 s  .co m
    resubmitIfRequestIsReplayable(conn, new TimeoutException(message));
}