ClientInterceptors.
| Modifier and Type | Class and Description |
|---|---|
| public abstract static class | ClientInterceptors.CheckedForwardingClientCall<ReqT, RespT>
A |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final ClientCall |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Channel | Returns: a new channel instance with the interceptors applied.the underlying channel to intercept. channel, ClientInterceptor... array of interceptors to bind to interceptors)channel.Create a new |
| public static Channel | Returns: a new channel instance with the interceptors applied.the underlying channel to intercept. channel, List<? extends ClientInterceptor> a list of interceptors to bind to interceptors)channel.Create a new |
| public static Channel | Returns: a new channel instance with the interceptors applied.the underlying channel to intercept. channel, ClientInterceptor... array of interceptors to bind to interceptors)channel.Create a new |
| public static Channel | Returns: a new channel instance with the interceptors applied.the underlying channel to intercept. channel, List<? extends ClientInterceptor> a list of interceptors to bind to interceptors)channel.Create a new |
| pack-priv static <WReqT, WRespT> ClientInterceptor | wrapClientInterceptor(final ClientInterceptor interceptor, final MethodDescriptor.
Creates a new ClientInterceptor that transforms requests into |
| NOOP_CALL | back to summary |
|---|---|
| private static final ClientCall<Object, Object> NOOP_CALL | |
| ClientInterceptors | back to summary |
|---|---|
| private ClientInterceptors() | |
| intercept | back to summary |
|---|---|
| public static Channel intercept(Channel channel, ClientInterceptor... interceptors) Create a new
| |
| intercept | back to summary |
|---|---|
| public static Channel intercept(Channel channel, List<? extends ClientInterceptor> interceptors) Create a new
| |
| interceptForward | back to summary |
|---|---|
| public static Channel interceptForward(Channel channel, ClientInterceptor... interceptors) Create a new
| |
| interceptForward | back to summary |
|---|---|
| public static Channel interceptForward(Channel channel, List<? extends ClientInterceptor> interceptors) Create a new
| |
| wrapClientInterceptor | back to summary |
|---|---|
| pack-priv static <WReqT, WRespT> ClientInterceptor wrapClientInterceptor(final ClientInterceptor interceptor, final MethodDescriptor. Creates a new ClientInterceptor that transforms requests into | |
io.grpc.ForwardingClientCall that delivers exceptions from its start logic to the
call listener.
ClientCall#start(ClientCall. should not throw any
exception other than those caused by misuse, e.g., IllegalStateException. CheckedForwardingClientCall provides checkedStart() in which throwing exceptions is
allowed.
| Modifier and Type | Field and Description |
|---|---|
| private ClientCall |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract void | checkedStart(ClientCall.
Subclasses implement the start logic here that would normally belong to |
| protected final ClientCall | delegate()
Implements abstract io. ClientCall.
|
| public final void | start(ClientCall.
receives response messages responseListener,which can contain extra call metadata, e.g. authentication credentials. headers)Overrides io. responseListener for processing response messages.
|
| delegate | back to summary |
|---|---|
| private ClientCall<ReqT, RespT> delegate | |
| CheckedForwardingClientCall | back to summary |
|---|---|
| protected CheckedForwardingClientCall(ClientCall<ReqT, RespT> delegate) | |
| checkedStart | back to summary |
|---|---|
| protected abstract void checkedStart(ClientCall. Subclasses implement the start logic here that would normally belong to Implementation should call | |
| delegate | back to summary |
|---|---|
| protected final ClientCall Implements abstract io. Doc from io. Returns the delegated
| |
| start | back to summary |
|---|---|
| public final void start(ClientCall. Overrides io. Doc from io. Start a call, using It must be called prior to any other method on this class, except for Since
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Channel | |
| private final ClientInterceptor |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public String | authority()
Implements abstract io. |
| public <ReqT, RespT> ClientCall | newCall(MethodDescriptor<ReqT, RespT>
describes the name and parameter types of the operation to call. method, CallOptions runtime options to be applied to this call. callOptions)Implements abstract io. ClientCall to the remote operation specified by the given
MethodDescriptor.
|
| channel | back to summary |
|---|---|
| private final Channel channel | |
| interceptor | back to summary |
|---|---|
| private final ClientInterceptor interceptor | |
| InterceptorChannel | back to summary |
|---|---|
| private InterceptorChannel(Channel channel, ClientInterceptor interceptor) | |
| authority | back to summary |
|---|---|
| public String authority() Implements abstract io. Doc from io. The authority of the destination this channel connects to. Typically this is in the format
| |
| newCall | back to summary |
|---|---|
| public <ReqT, RespT> ClientCall Implements abstract io. Doc from io. Create a
| |