public class BufferedProxySelector extends ProxySelector
| Modifier and Type | Class and Description |
|---|---|
static class |
BufferedProxySelector.CacheScope
Define the available scopes of the cache key generation
|
| Constructor and Description |
|---|
BufferedProxySelector(int maxSize,
long ttl,
ProxySelector delegate,
BufferedProxySelector.CacheScope cacheScope)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
connectFailed(URI uri,
SocketAddress sa,
IOException ioe)
connectFailed
|
List<Proxy> |
select(URI uri)
select
|
String |
toString() |
getDefault, 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 © 2022. All rights reserved.