java.lang.Object
java.net.ProxySelector
org.kink_lang.kink.internal.net.DelegateProxySelector
ProxySelector implementation which delegates methods to Kink functions.
-
Constructor Summary
ConstructorsConstructorDescriptionDelegateProxySelector(FunVal selectFun, FunVal connectFailedFun) Makes a proxy selector which delegates methods to Kink functions. -
Method Summary
Modifier and TypeMethodDescriptionvoidconnectFailed(URI uri, SocketAddress sa, IOException ioex) Methods inherited from class java.net.ProxySelector
getDefault, of, setDefault
-
Constructor Details
-
DelegateProxySelector
Makes a proxy selector which delegates methods to Kink functions.selectFun and connectFailedFun must belong to a same vm.
- Parameters:
selectFun- the function which selector.connectFailedFun- the function which selector.
-
-
Method Details
-
select
- Specified by:
selectin classProxySelector
-
connectFailed
- Specified by:
connectFailedin classProxySelector
-