public static class VirtualDeploymentListener.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and 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.
|
public VirtualDeploymentListener.Builder protocol(VirtualDeploymentListener.Protocol protocol)
Type of protocol used in virtual deployment.
protocol
- the value to setpublic VirtualDeploymentListener.Builder port(Integer port)
Port in which virtual deployment is running.
port
- the value to setpublic 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.
requestTimeoutInMs
- the value to setpublic 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.
idleTimeoutInMs
- the value to setpublic VirtualDeploymentListener build()
public VirtualDeploymentListener.Builder copy(VirtualDeploymentListener model)
Copyright © 2016–2024. All rights reserved.