public static class GRPCClient.Builder extends Object
Modifier and Type | Method and Description |
---|---|
GRPCClient |
build()
Builds an instance of
GRPCClient . |
GRPCClient.Builder |
host(String host)
Mandatory method - should be set what host shall be used.
|
GRPCClient.Builder |
interceptor(io.grpc.ClientInterceptor interceptor)
Optionally set a client interceptor.
|
GRPCClient.Builder |
port(int port)
If port is 443 for ssl or 80 for plain then no need to be called.
|
GRPCClient.Builder |
ssl(boolean ssl)
Set if ssl (by default it is true).
|
GRPCClient.Builder |
vertx(io.vertx.core.Vertx vertx)
Optionally set a Vertx instance that could be used with other application components.
|
public GRPCClient.Builder ssl(boolean ssl)
ssl
- if sslpublic GRPCClient.Builder host(String host)
host
- target host.public GRPCClient.Builder port(int port)
port
- taregt portpublic GRPCClient.Builder interceptor(io.grpc.ClientInterceptor interceptor)
interceptor
- client interceptorpublic GRPCClient.Builder vertx(io.vertx.core.Vertx vertx)
GRPCClient
will be created.vertx
- vertx instancepublic GRPCClient build()
GRPCClient
. If Vertx instance is null new one will be created.
It could be shared between all instances with same target and interceptor.GRPCClient
Copyright © 2022 Bosch.IO GmbH. All rights reserved.