public class Settings extends Object
AuthleteApi implementation.| Constructor and Description |
|---|
Settings() |
| Modifier and Type | Method and Description |
|---|---|
int |
getConnectionTimeout()
Get the timeout value in milliseconds for socket connection.
|
int |
getReadTimeout()
Get the read timeout in milliseconds.
|
Settings |
setConnectionTimeout(int timeout)
Set the timeout value in milliseconds for socket connection.
|
Settings |
setReadTimeout(int timeout)
Set the read timeout in milliseconds.
|
public int getConnectionTimeout()
public Settings setConnectionTimeout(int timeout)
JAX-RS Client API has not standardized the way to set a
connection timeout value. Therefore, if authlete-java-jaxrs is used as AuthleteApi
implementation and if the JAX-RS Client implementation
is not supported by the implementation of setConnectionTimeout() of authlete-java-jaxrs, the value
given to setConnectionTimeout() won't have any
effect. See README in authlete-java-jaxrs for details.
timeout - The connection timeout value in milliseconds.this object.IllegalArgumentException - The given timeout value is negative.public int getReadTimeout()
public Settings setReadTimeout(int timeout)
JAX-RS Client API has not standardized the way to set
a read timeout value. Therefore, if authlete-java-jaxrs is used as AuthleteApi
implementation and if the JAX-RS Client implementation
is not supported by the implementation of setReadTimeout() of authlete-java-jaxrs, the value
given to setReadTimeout() won't have any effect.
See README in authlete-java-jaxrs for details.
timeout - The read timeout in milliseconds.this object.Copyright © 2019. All rights reserved.