@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TimeoutConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
An object that represents the timeout configurations for Service Connect.
If idleTimeout
is set to a time that is less than perRequestTimeout
, the connection will
close when the idleTimeout
is reached and not the perRequestTimeout
.
Constructor and Description |
---|
TimeoutConfiguration() |
Modifier and Type | Method and Description |
---|---|
TimeoutConfiguration |
clone() |
boolean |
equals(Object obj) |
Integer |
getIdleTimeoutSeconds()
The amount of time in seconds a connection will stay active while idle.
|
Integer |
getPerRequestTimeoutSeconds()
The amount of time waiting for the upstream to respond with a complete response per request.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setIdleTimeoutSeconds(Integer idleTimeoutSeconds)
The amount of time in seconds a connection will stay active while idle.
|
void |
setPerRequestTimeoutSeconds(Integer perRequestTimeoutSeconds)
The amount of time waiting for the upstream to respond with a complete response per request.
|
String |
toString()
Returns a string representation of this object.
|
TimeoutConfiguration |
withIdleTimeoutSeconds(Integer idleTimeoutSeconds)
The amount of time in seconds a connection will stay active while idle.
|
TimeoutConfiguration |
withPerRequestTimeoutSeconds(Integer perRequestTimeoutSeconds)
The amount of time waiting for the upstream to respond with a complete response per request.
|
public void setIdleTimeoutSeconds(Integer idleTimeoutSeconds)
The amount of time in seconds a connection will stay active while idle. A value of 0
can be set to
disable idleTimeout
.
The idleTimeout
default for HTTP
/HTTP2
/GRPC
is 5 minutes.
The idleTimeout
default for TCP
is 1 hour.
idleTimeoutSeconds
- The amount of time in seconds a connection will stay active while idle. A value of 0
can be
set to disable idleTimeout
.
The idleTimeout
default for HTTP
/HTTP2
/GRPC
is 5
minutes.
The idleTimeout
default for TCP
is 1 hour.
public Integer getIdleTimeoutSeconds()
The amount of time in seconds a connection will stay active while idle. A value of 0
can be set to
disable idleTimeout
.
The idleTimeout
default for HTTP
/HTTP2
/GRPC
is 5 minutes.
The idleTimeout
default for TCP
is 1 hour.
0
can be
set to disable idleTimeout
.
The idleTimeout
default for HTTP
/HTTP2
/GRPC
is 5
minutes.
The idleTimeout
default for TCP
is 1 hour.
public TimeoutConfiguration withIdleTimeoutSeconds(Integer idleTimeoutSeconds)
The amount of time in seconds a connection will stay active while idle. A value of 0
can be set to
disable idleTimeout
.
The idleTimeout
default for HTTP
/HTTP2
/GRPC
is 5 minutes.
The idleTimeout
default for TCP
is 1 hour.
idleTimeoutSeconds
- The amount of time in seconds a connection will stay active while idle. A value of 0
can be
set to disable idleTimeout
.
The idleTimeout
default for HTTP
/HTTP2
/GRPC
is 5
minutes.
The idleTimeout
default for TCP
is 1 hour.
public void setPerRequestTimeoutSeconds(Integer perRequestTimeoutSeconds)
The amount of time waiting for the upstream to respond with a complete response per request. A value of
0
can be set to disable perRequestTimeout
. perRequestTimeout
can only be
set if Service Connect appProtocol
isn't TCP
. Only idleTimeout
is allowed
for TCP
appProtocol
.
perRequestTimeoutSeconds
- The amount of time waiting for the upstream to respond with a complete response per request. A value of
0
can be set to disable perRequestTimeout
. perRequestTimeout
can
only be set if Service Connect appProtocol
isn't TCP
. Only
idleTimeout
is allowed for TCP
appProtocol
.public Integer getPerRequestTimeoutSeconds()
The amount of time waiting for the upstream to respond with a complete response per request. A value of
0
can be set to disable perRequestTimeout
. perRequestTimeout
can only be
set if Service Connect appProtocol
isn't TCP
. Only idleTimeout
is allowed
for TCP
appProtocol
.
0
can be set to disable perRequestTimeout
. perRequestTimeout
can
only be set if Service Connect appProtocol
isn't TCP
. Only
idleTimeout
is allowed for TCP
appProtocol
.public TimeoutConfiguration withPerRequestTimeoutSeconds(Integer perRequestTimeoutSeconds)
The amount of time waiting for the upstream to respond with a complete response per request. A value of
0
can be set to disable perRequestTimeout
. perRequestTimeout
can only be
set if Service Connect appProtocol
isn't TCP
. Only idleTimeout
is allowed
for TCP
appProtocol
.
perRequestTimeoutSeconds
- The amount of time waiting for the upstream to respond with a complete response per request. A value of
0
can be set to disable perRequestTimeout
. perRequestTimeout
can
only be set if Service Connect appProtocol
isn't TCP
. Only
idleTimeout
is allowed for TCP
appProtocol
.public String toString()
toString
in class Object
Object.toString()
public TimeoutConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.