@Generated(value="OracleSDKGenerator", comments="API Version: 20220615") public final class VirtualDeploymentListener extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Listener configuration for a virtual deployment.
Note: Objects should always be created or deserialized using the VirtualDeploymentListener.Builder
. This model
distinguishes fields that are null
because they are unset from fields that are explicitly
set to null
. This is done in the setter methods of the VirtualDeploymentListener.Builder
, which maintain a
set of all explicitly set fields called VirtualDeploymentListener.Builder.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
VirtualDeploymentListener.Builder |
static class |
VirtualDeploymentListener.Protocol
Type of protocol used in virtual deployment.
|
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
VirtualDeploymentListener(VirtualDeploymentListener.Protocol protocol,
Integer port,
Long requestTimeoutInMs,
Long idleTimeoutInMs)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static VirtualDeploymentListener.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Long |
getIdleTimeoutInMs()
The maximum duration in milliseconds for which the request’s stream may be idle.
|
Integer |
getPort()
Port in which virtual deployment is running.
|
VirtualDeploymentListener.Protocol |
getProtocol()
Type of protocol used in virtual deployment.
|
Long |
getRequestTimeoutInMs()
The maximum duration in milliseconds for the deployed service to respond to an incoming
request through the listener.
|
int |
hashCode() |
VirtualDeploymentListener.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"protocol","port","requestTimeoutInMs","idleTimeoutInMs"}) public VirtualDeploymentListener(VirtualDeploymentListener.Protocol protocol, Integer port, Long requestTimeoutInMs, Long idleTimeoutInMs)
public static VirtualDeploymentListener.Builder builder()
Create a new builder.
public VirtualDeploymentListener.Builder toBuilder()
public VirtualDeploymentListener.Protocol getProtocol()
Type of protocol used in virtual deployment.
public Integer getPort()
Port in which virtual deployment is running.
public Long getRequestTimeoutInMs()
The maximum duration in milliseconds for the deployed service to respond to an incoming request through the listener. If provided, the timeout value overrides the default timeout of 15 seconds for the HTTP/HTTP2 listeners, and disabled (no timeout) for the GRPC listeners. The value 0 (zero) indicates that the timeout is disabled. The timeout cannot be configured for the TCP and TLS_PASSTHROUGH listeners. For streaming responses from the deployed service, consider either keeping the timeout disabled or set a sufficiently high value.
public Long getIdleTimeoutInMs()
The maximum duration in milliseconds for which the request’s stream may be idle. The value 0 (zero) indicates that the timeout is disabled.
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.