Class 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 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).
    • Method Detail

      • 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 class com.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 class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel