public abstract static class BaseGrpcClient.Builder extends Object
| Modifier and Type | Field and Description |
|---|---|
protected io.grpc.ManagedChannel |
channel |
protected String |
host |
protected long |
keepAliveTimeMS |
protected long |
keepAliveTimeoutMS |
protected boolean |
keepAliveWithoutCalls |
protected Metrics |
metrics |
protected io.grpc.netty.shaded.io.grpc.netty.NegotiationType |
negotiationType |
protected io.grpc.stub.StreamObserver<com.expedia.open.tracing.agent.api.DispatchResult> |
observer |
protected int |
port |
protected long |
shutdownTimeoutMS |
| Constructor and Description |
|---|
Builder(Metrics metrics,
io.grpc.ManagedChannel channel) |
Builder(MetricsRegistry metrics,
io.grpc.ManagedChannel channel) |
Builder(MetricsRegistry metrics,
String host,
int port) |
Builder(Metrics metrics,
String host,
int port) |
| Modifier and Type | Method and Description |
|---|---|
abstract BaseGrpcClient |
build() |
protected io.grpc.ManagedChannel |
buildManagedChannel() |
BaseGrpcClient.Builder |
withKeepAliveTimeMS(long keepAliveTimeMS) |
BaseGrpcClient.Builder |
withKeepAliveTimeoutMS(long keepAliveTimeoutMS) |
BaseGrpcClient.Builder |
withKeepAliveWithoutCalls(boolean keepAliveWithoutCalls) |
BaseGrpcClient.Builder |
withNegotiationType(io.grpc.netty.shaded.io.grpc.netty.NegotiationType negotiationType) |
BaseGrpcClient.Builder |
withObserver(io.grpc.stub.StreamObserver<com.expedia.open.tracing.agent.api.DispatchResult> observer) |
BaseGrpcClient.Builder |
withShutdownTimeoutMS(long shutdownTimeoutMS) |
protected io.grpc.stub.StreamObserver<com.expedia.open.tracing.agent.api.DispatchResult> observer
protected Metrics metrics
protected String host
protected int port
protected long keepAliveTimeMS
protected long keepAliveTimeoutMS
protected boolean keepAliveWithoutCalls
protected io.grpc.netty.shaded.io.grpc.netty.NegotiationType negotiationType
protected io.grpc.ManagedChannel channel
protected long shutdownTimeoutMS
public Builder(MetricsRegistry metrics, io.grpc.ManagedChannel channel)
public Builder(Metrics metrics, io.grpc.ManagedChannel channel)
public Builder(MetricsRegistry metrics, String host, int port)
public BaseGrpcClient.Builder withObserver(io.grpc.stub.StreamObserver<com.expedia.open.tracing.agent.api.DispatchResult> observer)
public BaseGrpcClient.Builder withKeepAliveTimeMS(long keepAliveTimeMS)
public BaseGrpcClient.Builder withKeepAliveTimeoutMS(long keepAliveTimeoutMS)
public BaseGrpcClient.Builder withKeepAliveWithoutCalls(boolean keepAliveWithoutCalls)
public BaseGrpcClient.Builder withNegotiationType(io.grpc.netty.shaded.io.grpc.netty.NegotiationType negotiationType)
public BaseGrpcClient.Builder withShutdownTimeoutMS(long shutdownTimeoutMS)
protected io.grpc.ManagedChannel buildManagedChannel()
public abstract BaseGrpcClient build()
Copyright © 2019. All rights reserved.