org.apache.http.conn.ClientConnectionOperator Java Examples

The following examples show how to use org.apache.http.conn.ClientConnectionOperator. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: NamedConnectionPool.java    From ribbon with Apache License 2.0 5 votes vote down vote up
@Override
protected BasicPoolEntry createEntry(RouteSpecificPool rospl,
        ClientConnectionOperator op) {
    createEntryCounter.increment();
    Stopwatch stopWatch = creationTimer.start();
    try {
        return super.createEntry(rospl, op);
    } finally {
        stopWatch.stop();
    }
}
 
Example #2
Source File: HttpUtils.java    From MediaPlayerProxy with Apache License 2.0 4 votes vote down vote up
@Override
protected ClientConnectionOperator createConnectionOperator(final SchemeRegistry sr) {
	return new MyClientConnectionOperator(sr);
}
 
Example #3
Source File: CustomConnectionsHttpClientFactory.java    From olingo-odata4 with Apache License 2.0 4 votes vote down vote up
@Override
protected ClientConnectionOperator createConnectionOperator(final SchemeRegistry registry) {
  return new MyClientConnectionOperator(registry);
}
 
Example #4
Source File: NamedConnectionPool.java    From ribbon with Apache License 2.0 4 votes vote down vote up
public NamedConnectionPool(String name, ClientConnectionOperator operator,
        ConnPerRoute connPerRoute, int maxTotalConnections, long connTTL,
        TimeUnit connTTLTimeUnit) {
    super(operator, connPerRoute, maxTotalConnections, connTTL, connTTLTimeUnit);
    initMonitors(name);
}
 
Example #5
Source File: NamedConnectionPool.java    From ribbon with Apache License 2.0 4 votes vote down vote up
public NamedConnectionPool(String name, ClientConnectionOperator operator,
        ConnPerRoute connPerRoute, int maxTotalConnections) {
    super(operator, connPerRoute, maxTotalConnections);
    initMonitors(name);
}
 
Example #6
Source File: NamedConnectionPool.java    From ribbon with Apache License 2.0 4 votes vote down vote up
public NamedConnectionPool(String name, ClientConnectionOperator operator,
        HttpParams params) {
    super(operator, params);
    initMonitors(name);
}
 
Example #7
Source File: NamedConnectionPool.java    From ribbon with Apache License 2.0 4 votes vote down vote up
NamedConnectionPool(ClientConnectionOperator operator,
        ConnPerRoute connPerRoute, int maxTotalConnections, long connTTL,
        TimeUnit connTTLTimeUnit) {
    super(operator, connPerRoute, maxTotalConnections, connTTL, connTTLTimeUnit);
}
 
Example #8
Source File: NamedConnectionPool.java    From ribbon with Apache License 2.0 4 votes vote down vote up
NamedConnectionPool(ClientConnectionOperator operator,
        ConnPerRoute connPerRoute, int maxTotalConnections) {
    super(operator, connPerRoute, maxTotalConnections);
}
 
Example #9
Source File: NamedConnectionPool.java    From ribbon with Apache License 2.0 4 votes vote down vote up
NamedConnectionPool(ClientConnectionOperator operator,
        HttpParams params) {
    super(operator, params);
}
 
Example #10
Source File: CougarClientConnManager.java    From cougar with Apache License 2.0 4 votes vote down vote up
private CougarConnPoolByRoute(ClientConnectionOperator operator, ConnPerRoute connPerRoute,
                              int maxTotalConnections, long connTTL, TimeUnit connTTLTimeUnit) {
    super(operator, connPerRoute, maxTotalConnections, connTTL, connTTLTimeUnit);
}