public class AsyncConnectionManager extends SpyObject
| Constructor and Description |
|---|
AsyncConnectionManager(org.apache.http.HttpHost target,
int maxConnections,
org.apache.http.nio.NHttpClientHandler handler,
org.apache.http.params.HttpParams params,
RequeueOpCallback cb) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
boolean |
hasPendingRequests() |
void |
releaseConnection(org.apache.http.nio.NHttpClientConnection conn) |
AsyncConnectionRequest |
requestConnection() |
void |
shutdown(long waitMs) |
public AsyncConnectionManager(org.apache.http.HttpHost target,
int maxConnections,
org.apache.http.nio.NHttpClientHandler handler,
org.apache.http.params.HttpParams params,
RequeueOpCallback cb)
throws org.apache.http.nio.reactor.IOReactorException
org.apache.http.nio.reactor.IOReactorExceptionpublic void execute()
throws java.io.IOException
java.io.IOExceptionpublic boolean hasPendingRequests()
public void shutdown(long waitMs)
throws java.io.IOException
java.io.IOExceptionpublic AsyncConnectionRequest requestConnection()
public void releaseConnection(org.apache.http.nio.NHttpClientConnection conn)
Copyright © 2006-2009 Dustin Sallings, 2009-2012 Couchbase, Inc.