public class NamedTimeoutConstraint extends java.lang.Object implements TimeoutConstraint
TimeoutConstraint
which can be identified by a nameConstructor and Description |
---|
NamedTimeoutConstraint() |
NamedTimeoutConstraint(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
int |
getConnectionTimeout() |
java.lang.String |
getName() |
int |
getReadTimeout() |
void |
setConnectionTimeout(int connectionTimeout)
Sets the connection timeout of this timeout constraint
|
void |
setName(java.lang.String name) |
void |
setReadTimeout(int readTimeout)
Sets the read timeout of this timeout constraint
|
public NamedTimeoutConstraint()
public NamedTimeoutConstraint(java.lang.String name)
public void setName(java.lang.String name)
public java.lang.String getName()
public int getConnectionTimeout()
getConnectionTimeout
in interface TimeoutConstraint
TimeoutConstraint
decide what kind of timeout semantics to use while establishing a connection (for example,
some implementations can decide to use some default value).public int getReadTimeout()
getReadTimeout
in interface TimeoutConstraint
TimeoutConstraint
decide what kind of timeout
semantics to use reading from the resource (for example, some implementations can decide to
use some default value).public void setConnectionTimeout(int connectionTimeout)
connectionTimeout
- The connection timeout in milliseconds.public void setReadTimeout(int readTimeout)
readTimeout
- The read timeout in milliseconds.Copyright ©2007-2020 The Apache Software Foundation, Licensed under Apache License, Version 2.0.