@ThreadSafe public abstract class Channel extends Object
Applications can add common cross-cutting behaviors to stubs by decorating Channel
ClientInterceptor. It is expected that most application
code will not use this class directly but rather work with stubs that have been bound to a
Channel that was decorated during application initialization.
|Constructor and Description|
|Modifier and Type||Method and Description|
The authority of the destination this channel connects to.
public abstract <RequestT,ResponseT> ClientCall<RequestT,ResponseT> newCall(MethodDescriptor<RequestT,ResponseT> methodDescriptor, CallOptions callOptions)
ClientCallto the remote operation specified by the given
MethodDescriptor. The returned
ClientCalldoes not trigger any remote behavior until
ClientCall.start(ClientCall.Listener, Metadata)is invoked.
methodDescriptor- describes the name and parameter types of the operation to call.
callOptions- runtime options to be applied to this call.
ClientCallbound to the specified method.
public abstract String authority()