Class ClientMethodDescriptor
java.lang.Object
io.helidon.microprofile.grpc.client.ClientMethodDescriptor
Encapsulates all metadata necessary to define a gRPC method. In addition to wrapping a
MethodDescriptor
,
this class also holds the request and response types of the gRPC method. A
ClientServiceDescriptor
can contain zero or more MethodDescriptor
.
An instance of ClientMethodDescriptor can be created either from an existing MethodDescriptor
or
from one of the factory methods bidirectional(String, String)
, clientStreaming(String, String)
,
serverStreaming(String, String)
or unary(String, String)
.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
MethodDescriptor
builder implementation.static interface
ClientMethod configuration API. -
Method Summary
Modifier and TypeMethodDescriptionio.grpc.CallCredentials
Return theCallCredentials
set on this service.<ReqT,
RespT>
io.grpc.MethodDescriptor<ReqT, RespT> Returns theMethodDescriptor
of this method.MethodHandler
<?, ?> Obtain theMethodHandler
to use to make client calls.name()
Returns the simple name of the method.
-
Method Details
-
callCredentials
public io.grpc.CallCredentials callCredentials()Return theCallCredentials
set on this service.- Returns:
- the
CallCredentials
set on this service
-
name
Returns the simple name of the method.- Returns:
- The simple name of the method.
-
descriptor
public <ReqT,RespT> io.grpc.MethodDescriptor<ReqT,RespT> descriptor()Returns theMethodDescriptor
of this method.- Type Parameters:
ReqT
- the request typeRespT
- the response type- Returns:
- The
MethodDescriptor
of this method.
-
methodHandler
Obtain theMethodHandler
to use to make client calls.- Returns:
- the
MethodHandler
to use to make client calls
-