public class ClientInterceptors extends Object
ClientInterceptor
s.Modifier and Type | Class and Description |
---|---|
static class |
ClientInterceptors.CheckedForwardingCall<ReqT,RespT>
A
ForwardingCall that delivers exceptions from its start logic to the call
listener. |
static class |
ClientInterceptors.ForwardingCall<ReqT,RespT>
Deprecated.
|
static class |
ClientInterceptors.ForwardingListener<T>
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static Channel |
intercept(Channel channel,
ClientInterceptor... interceptors)
Create a new
Channel that will call interceptors before starting a call on the
given channel. |
static Channel |
intercept(Channel channel,
List<ClientInterceptor> interceptors)
Create a new
Channel that will call interceptors before starting a call on the
given channel. |
public static Channel intercept(Channel channel, ClientInterceptor... interceptors)
Channel
that will call interceptors
before starting a call on the
given channel.channel
- the underlying channel to intercept.interceptors
- array of interceptors to bind to channel
.public static Channel intercept(Channel channel, List<ClientInterceptor> interceptors)
Channel
that will call interceptors
before starting a call on the
given channel.channel
- the underlying channel to intercept.interceptors
- a list of interceptors to bind to channel
.