T - Sub-class that supports jClouds properties.public abstract class CloudPropertiesBase<T extends CloudPropertiesBase<T>> extends Object
jClouds configuration properties.| Constructor and Description |
|---|
CloudPropertiesBase() |
| Modifier and Type | Method and Description |
|---|---|
protected Properties |
buildBaseProperties()
Converts this configuration to
jClouds-compliant properties. |
Integer |
getConnectTimeout()
Returns the connect timeout in milliseconds (see
setConnectTimeout(Integer)). |
Integer |
getSoTimeout()
Returns the response read timeout in milliseconds (see
setSoTimeout(Integer)). |
void |
setConnectTimeout(Integer connectTimeout)
Sets the connect timeout in milliseconds.
|
void |
setSoTimeout(Integer soTimeout)
Sets the response read timeout in milliseconds.
|
T |
withConnectTimeout(Integer connectTimeout)
Fluent-style version of
setConnectTimeout(Integer). |
T |
withSoTimeout(Integer soTimeout)
Fluent-style version of
setSoTimeout(Integer). |
public Integer getConnectTimeout()
setConnectTimeout(Integer)).public void setConnectTimeout(Integer connectTimeout)
connectTimeout - Connect timeout in milliseconds.Constants.PROPERTY_CONNECTION_TIMEOUT,
URLConnection.setConnectTimeout(int)public T withConnectTimeout(Integer connectTimeout)
setConnectTimeout(Integer).connectTimeout - Connect timeout in milliseconds.public Integer getSoTimeout()
setSoTimeout(Integer)).public void setSoTimeout(Integer soTimeout)
soTimeout - Response read in milliseconds.Constants.PROPERTY_SO_TIMEOUT,
URLConnection.setReadTimeout(int)public T withSoTimeout(Integer soTimeout)
setSoTimeout(Integer).soTimeout - Response read timeout.protected final Properties buildBaseProperties()
jClouds-compliant properties.
This method is intentionally final in order to control how properties of CloudPropertiesBase class get converted to
jClouds's properties. Subclasses are free to override properties that are returned by this method.
Properties with jClouds-related settings bases on properties of
CloudPropertiesBase class.