Example usage for org.apache.http.nio.conn ManagedNHttpClientConnection getId

List of usage examples for org.apache.http.nio.conn ManagedNHttpClientConnection getId

Introduction

In this page you can find the example usage for org.apache.http.nio.conn ManagedNHttpClientConnection getId.

Prototype

String getId();

Source Link

Document

Returns connection ID which is expected to be unique for the life span of the connection manager.

Usage

From source file:org.apache.http.impl.nio.conn.CPool.java

@Override
protected CPoolEntry createEntry(final HttpRoute route, final ManagedNHttpClientConnection conn) {
    final CPoolEntry entry = new CPoolEntry(this.log, conn.getId(), route, conn, this.timeToLive, this.tunit);
    entry.setSocketTimeout(conn.getSocketTimeout());
    return entry;
}