Package io.helidon.grpc.client
Class ClientMethodDescriptor
- java.lang.Object
-
- io.helidon.grpc.client.ClientMethodDescriptor
-
public final class ClientMethodDescriptor extends Object
Encapsulates all metadata necessary to define a gRPC method. In addition to wrapping aMethodDescriptor
, this class also holds the request and response types of the gRPC method. AClientServiceDescriptor
can contain zero or moreMethodDescriptor
. An instance of ClientMethodDescriptor can be created either from an existingMethodDescriptor
or from one of the factory methodsbidirectional(String, String)
,clientStreaming(String, String)
,serverStreaming(String, String)
orunary(String, String)
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ClientMethodDescriptor.Builder
MethodDescriptor
builder implementation.static interface
ClientMethodDescriptor.Rules
ClientMethod configuration API.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.grpc.CallCredentials
callCredentials()
Return theCallCredentials
set on this service.<ReqT,RespT>
io.grpc.MethodDescriptor<ReqT,RespT>descriptor()
Returns theMethodDescriptor
of this method.MethodHandler
methodHandler()
Obtain theMethodHandler
to use to make client calls.String
name()
Returns the simple name of the method.
-
-
-
Method Detail
-
callCredentials
public io.grpc.CallCredentials callCredentials()
Return theCallCredentials
set on this service.- Returns:
- the
CallCredentials
set on this service
-
name
public String 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
public MethodHandler methodHandler()
Obtain theMethodHandler
to use to make client calls.- Returns:
- the
MethodHandler
to use to make client calls
-
-