Package com.oracle.bmc.servicemesh.model
Class VirtualDeploymentListener.Builder
- java.lang.Object
-
- com.oracle.bmc.servicemesh.model.VirtualDeploymentListener.Builder
-
- Enclosing class:
- VirtualDeploymentListener
public static class VirtualDeploymentListener.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VirtualDeploymentListener
build()
VirtualDeploymentListener.Builder
copy(VirtualDeploymentListener model)
VirtualDeploymentListener.Builder
idleTimeoutInMs(Long idleTimeoutInMs)
The maximum duration in milliseconds for which the request’s stream may be idle.VirtualDeploymentListener.Builder
port(Integer port)
Port in which virtual deployment is running.VirtualDeploymentListener.Builder
protocol(VirtualDeploymentListener.Protocol protocol)
Type of protocol used in virtual deployment.VirtualDeploymentListener.Builder
requestTimeoutInMs(Long requestTimeoutInMs)
The maximum duration in milliseconds for the deployed service to respond to an incoming request through the listener.
-
-
-
Method Detail
-
protocol
public VirtualDeploymentListener.Builder protocol(VirtualDeploymentListener.Protocol protocol)
Type of protocol used in virtual deployment.- Parameters:
protocol
- the value to set- Returns:
- this builder
-
port
public VirtualDeploymentListener.Builder port(Integer port)
Port in which virtual deployment is running.- Parameters:
port
- the value to set- Returns:
- this builder
-
requestTimeoutInMs
public VirtualDeploymentListener.Builder requestTimeoutInMs(Long requestTimeoutInMs)
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.
- Parameters:
requestTimeoutInMs
- the value to set- Returns:
- this builder
-
idleTimeoutInMs
public VirtualDeploymentListener.Builder idleTimeoutInMs(Long idleTimeoutInMs)
The maximum duration in milliseconds for which the request’s stream may be idle.The value 0 (zero) indicates that the timeout is disabled.
- Parameters:
idleTimeoutInMs
- the value to set- Returns:
- this builder
-
build
public VirtualDeploymentListener build()
-
copy
public VirtualDeploymentListener.Builder copy(VirtualDeploymentListener model)
-
-