public class AbstractStub.StubConfigBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
AbstractStub.StubConfigBuilder |
addInterceptor(io.grpc.ClientInterceptor interceptor)
Adds a client interceptor to be attached to the channel of the reconfigured stub.
|
S |
build()
Create a new stub with the configurations made on this builder.
|
AbstractStub.StubConfigBuilder |
setChannel(io.grpc.Channel channel)
Set the channel to be used by the stub.
|
AbstractStub.StubConfigBuilder |
setTimeout(long timeout,
TimeUnit unit)
Sets a timeout for all methods in the stub.
|
public AbstractStub.StubConfigBuilder setTimeout(long timeout, TimeUnit unit)
public AbstractStub.StubConfigBuilder setChannel(io.grpc.Channel channel)
public AbstractStub.StubConfigBuilder addInterceptor(io.grpc.ClientInterceptor interceptor)
public S build()