public class ViewPool
extends org.apache.http.impl.nio.pool.BasicNIOConnPool
HttpHost
s.Constructor and Description |
---|
ViewPool(org.apache.http.nio.reactor.ConnectingIOReactor reactor,
org.apache.http.config.ConnectionConfig config)
Create a new
ViewPool . |
Modifier and Type | Method and Description |
---|---|
void |
closeConnectionsForHost(org.apache.http.HttpHost host)
Closes the underlying connections for the given
HttpHost . |
createEntry, lease, lease, onLease, onRelease, resolveLocalAddress, resolveRemoteAddress
closeExpired, closeIdle, enumAvailable, enumEntries, enumLeased, getDefaultMaxPerRoute, getMaxPerRoute, getMaxTotal, getStats, getTotalStats, isShutdown, lease, lease, release, requestCancelled, requestCompleted, requestFailed, requestTimeout, setDefaultMaxPerRoute, setMaxPerRoute, setMaxTotal, shutdown, toString, validatePendingRequests
public ViewPool(org.apache.http.nio.reactor.ConnectingIOReactor reactor, org.apache.http.config.ConnectionConfig config)
ViewPool
.reactor
- the reactor to use for connections.config
- the configuration to apply.public void closeConnectionsForHost(org.apache.http.HttpHost host)
HttpHost
.
Since on a rebalance out, all connections to this view node need to
be closed, regardless if they are currently available or leased.host
- the host to shutdown connections for.Copyright © 2006-2009 Dustin Sallings, 2009-2012 Couchbase, Inc.