Class ProxyListFallbackSelector
java.lang.Object
java.net.ProxySelector
com.github.markusbernhardt.proxy.selector.misc.ProxyListFallbackSelector
Implements a fallback selector to warp it around an existing ProxySelector.
This will remove proxies from a list of proxies and implement an automatic
retry mechanism.
- Author:
- Markus Bernhardt, Copyright 2016, Bernd Rosstauscher, Copyright 2009
-
Constructor Summary
ConstructorsConstructorDescriptionProxyListFallbackSelector(long retryAfterMs, ProxySelector delegate) ConstructorProxyListFallbackSelector(ProxySelector delegate) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidconnectFailed(URI uri, SocketAddress sa, IOException ioe) connectFailedselecttoString()Methods inherited from class java.net.ProxySelector
getDefault, of, setDefault
-
Constructor Details
-
ProxyListFallbackSelector
Constructor- Parameters:
delegate- the delegate to use.
-
ProxyListFallbackSelector
Constructor- Parameters:
retryAfterMs- the "retry delay" as amount of milliseconds.delegate- the delegate to use.
-
-
Method Details
-
connectFailed
connectFailed- Specified by:
connectFailedin classProxySelector- See Also:
-
select
select- Specified by:
selectin classProxySelector- See Also:
-
toString
-