public static final class GrpcGatewayListenerOptions.Builder
extends java.lang.Object
GrpcGatewayListenerOptions
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
GrpcGatewayListenerOptions |
build()
Builds the configured instance.
|
GrpcGatewayListenerOptions.Builder |
connectionPool(GrpcConnectionPool connectionPool)
Sets the value of
GrpcGatewayListenerOptions.getConnectionPool() |
GrpcGatewayListenerOptions.Builder |
healthCheck(HealthCheck healthCheck)
Sets the value of
GrpcGatewayListenerOptions.getHealthCheck() |
GrpcGatewayListenerOptions.Builder |
port(java.lang.Number port)
Sets the value of
GrpcGatewayListenerOptions.getPort() |
GrpcGatewayListenerOptions.Builder |
tls(ListenerTlsOptions tls)
Sets the value of
GrpcGatewayListenerOptions.getTls() |
public GrpcGatewayListenerOptions.Builder connectionPool(GrpcConnectionPool connectionPool)
GrpcGatewayListenerOptions.getConnectionPool()
connectionPool
- Connection pool for http listeners.this
public GrpcGatewayListenerOptions.Builder healthCheck(HealthCheck healthCheck)
GrpcGatewayListenerOptions.getHealthCheck()
healthCheck
- The health check information for the listener.this
public GrpcGatewayListenerOptions.Builder port(java.lang.Number port)
GrpcGatewayListenerOptions.getPort()
port
- Port to listen for connections on.this
public GrpcGatewayListenerOptions.Builder tls(ListenerTlsOptions tls)
GrpcGatewayListenerOptions.getTls()
tls
- Represents the configuration for enabling TLS on a listener.this
public GrpcGatewayListenerOptions build()
GrpcGatewayListenerOptions
java.lang.NullPointerException
- if any required attribute was not provided