public class AbstractStub.StubConfigBuilder extends Object
Modifier and Type | Method and Description |
---|---|
AbstractStub.StubConfigBuilder |
addInterceptor(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(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(Channel channel)
public AbstractStub.StubConfigBuilder addInterceptor(ClientInterceptor interceptor)
public S build()