Package com.inet.html
Interface InetHtmlDocument.TimeoutProvider
- Enclosing class:
- InetHtmlDocument
public static interface InetHtmlDocument.TimeoutProvider
A value for the
InetHtmlDocument.PROPERTY_CONNECTION_TIMEOUT property to dynamically
determine the connection timeout per destination.- Since:
- 1.10
-
Method Summary
Modifier and TypeMethodDescriptionintgetTimeout(URL connection) Returns the timeout in seconds for anURLdestination
-
Method Details
-
getTimeout
Returns the timeout in seconds for anURLdestination- Parameters:
connection- the connection to check for, a value ofnullyields -1- Returns:
- the timeout in seconds. Values are interpreted as:
- values > 0 - will be used as timeout in seconds
- values == 0 - will set an infinite timeout
- values < 0 - will DISABLE all connections
-