public class BufferedProxySelector extends ProxySelector
| Modifier and Type | Class | Description |
|---|---|---|
static class |
BufferedProxySelector.CacheScope |
Define the available scopes of the cache key generation
|
| Constructor | Description |
|---|---|
BufferedProxySelector(int maxSize,
long ttl,
ProxySelector delegate,
BufferedProxySelector.CacheScope cacheScope) |
Constructor
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
connectFailed(URI uri,
SocketAddress sa,
IOException ioe) |
connectFailed
|
List<Proxy> |
select(URI uri) |
select
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDefault, of, setDefaultpublic BufferedProxySelector(int maxSize,
long ttl,
ProxySelector delegate,
BufferedProxySelector.CacheScope cacheScope)
maxSize - the max size for the cache.ttl - the "time to live" for cache entries as amount in
milliseconds.delegate - the delegate to use.cacheScope - the desired cache scope.public void connectFailed(URI uri, SocketAddress sa, IOException ioe)
connectFailed in class ProxySelectorProxySelector.connectFailed(java.net.URI,
java.net.SocketAddress, java.io.IOException)public List<Proxy> select(URI uri)
select in class ProxySelectorProxySelector.select(java.net.URI)Copyright © 2018. All rights reserved.