Class TimeoutConfiguration
- java.lang.Object
-
- software.amazon.awssdk.services.ecs.model.TimeoutConfiguration
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<TimeoutConfiguration.Builder,TimeoutConfiguration>
@Generated("software.amazon.awssdk:codegen") public final class TimeoutConfiguration extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TimeoutConfiguration.Builder,TimeoutConfiguration>
An object that represents the timeout configurations for Service Connect.
If
idleTimeout
is set to a time that is less thanperRequestTimeout
, the connection will close when theidleTimeout
is reached and not theperRequestTimeout
.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
TimeoutConfiguration.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TimeoutConfiguration.Builder
builder()
boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
Integer
idleTimeoutSeconds()
The amount of time in seconds a connection will stay active while idle.Integer
perRequestTimeoutSeconds()
The amount of time waiting for the upstream to respond with a complete response per request.List<SdkField<?>>
sdkFields()
static Class<? extends TimeoutConfiguration.Builder>
serializableBuilderClass()
TimeoutConfiguration.Builder
toBuilder()
String
toString()
Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
idleTimeoutSeconds
public final Integer idleTimeoutSeconds()
The amount of time in seconds a connection will stay active while idle. A value of
0
can be set to disableidleTimeout
.The
idleTimeout
default forHTTP
/HTTP2
/GRPC
is 5 minutes.The
idleTimeout
default forTCP
is 1 hour.- Returns:
- The amount of time in seconds a connection will stay active while idle. A value of
0
can be set to disableidleTimeout
.The
idleTimeout
default forHTTP
/HTTP2
/GRPC
is 5 minutes.The
idleTimeout
default forTCP
is 1 hour.
-
perRequestTimeoutSeconds
public final 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 disableperRequestTimeout
.perRequestTimeout
can only be set if Service ConnectappProtocol
isn'tTCP
. OnlyidleTimeout
is allowed forTCP
appProtocol
.- Returns:
- The amount of time waiting for the upstream to respond with a complete response per request. A value of
0
can be set to disableperRequestTimeout
.perRequestTimeout
can only be set if Service ConnectappProtocol
isn'tTCP
. OnlyidleTimeout
is allowed forTCP
appProtocol
.
-
toBuilder
public TimeoutConfiguration.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<TimeoutConfiguration.Builder,TimeoutConfiguration>
-
builder
public static TimeoutConfiguration.Builder builder()
-
serializableBuilderClass
public static Class<? extends TimeoutConfiguration.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-