Package io.grpc
Class ClientInterceptors.InterceptorChannel
- java.lang.Object
-
- io.grpc.Channel
-
- io.grpc.ClientInterceptors.InterceptorChannel
-
- Enclosing class:
- ClientInterceptors
private static class ClientInterceptors.InterceptorChannel extends Channel
-
-
Field Summary
Fields Modifier and Type Field Description private Channel
channel
private ClientInterceptor
interceptor
-
Constructor Summary
Constructors Modifier Constructor Description private
InterceptorChannel(Channel channel, ClientInterceptor interceptor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
authority()
The authority of the destination this channel connects to.<ReqT,RespT>
ClientCall<ReqT,RespT>newCall(MethodDescriptor<ReqT,RespT> method, CallOptions callOptions)
Create aClientCall
to the remote operation specified by the givenMethodDescriptor
.
-
-
-
Field Detail
-
channel
private final Channel channel
-
interceptor
private final ClientInterceptor interceptor
-
-
Constructor Detail
-
InterceptorChannel
private InterceptorChannel(Channel channel, ClientInterceptor interceptor)
-
-
Method Detail
-
newCall
public <ReqT,RespT> ClientCall<ReqT,RespT> newCall(MethodDescriptor<ReqT,RespT> method, CallOptions callOptions)
Description copied from class:Channel
Create aClientCall
to the remote operation specified by the givenMethodDescriptor
. The returnedClientCall
does not trigger any remote behavior untilClientCall.start(ClientCall.Listener, Metadata)
is invoked.- Specified by:
newCall
in classChannel
- Parameters:
method
- describes the name and parameter types of the operation to call.callOptions
- runtime options to be applied to this call.- Returns:
- a
ClientCall
bound to the specified method.
-
-