Package com.oracle.bmc.servicemesh.model
Class VirtualDeploymentListener
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.servicemesh.model.VirtualDeploymentListener
-
@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 theVirtualDeploymentListener.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 theVirtualDeploymentListener.Builder
, which maintain a set of all explicitly set fields calledVirtualDeploymentListener.Builder.__explicitlySet__
. ThehashCode()
andequals(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).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VirtualDeploymentListener.Builder
static class
VirtualDeploymentListener.Protocol
Type of protocol used in virtual deployment.
-
Constructor Summary
Constructors Constructor Description VirtualDeploymentListener(VirtualDeploymentListener.Protocol protocol, Integer port, Long requestTimeoutInMs, Long idleTimeoutInMs)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
VirtualDeploymentListener
@Deprecated @ConstructorProperties({"protocol","port","requestTimeoutInMs","idleTimeoutInMs"}) public VirtualDeploymentListener(VirtualDeploymentListener.Protocol protocol, Integer port, Long requestTimeoutInMs, Long idleTimeoutInMs)
Deprecated.
-
-
Method Detail
-
builder
public static VirtualDeploymentListener.Builder builder()
Create a new builder.
-
toBuilder
public VirtualDeploymentListener.Builder toBuilder()
-
getProtocol
public VirtualDeploymentListener.Protocol getProtocol()
Type of protocol used in virtual deployment.- Returns:
- the value
-
getPort
public Integer getPort()
Port in which virtual deployment is running.- Returns:
- the value
-
getRequestTimeoutInMs
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.
- Returns:
- the value
-
getIdleTimeoutInMs
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.
- Returns:
- the value
-
toString
public String toString()
- Overrides:
toString
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Parameters:
includeByteArrayContents
- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-