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. AClientServiceDescriptorcan contain zero or moreMethodDescriptor. An instance of ClientMethodDescriptor can be created either from an existingMethodDescriptoror 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 classClientMethodDescriptor.BuilderMethodDescriptorbuilder implementation.static interfaceClientMethodDescriptor.RulesClientMethod configuration API.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.grpc.CallCredentialscallCredentials()Return theCallCredentialsset on this service.<ReqT,RespT>
io.grpc.MethodDescriptor<ReqT,RespT>descriptor()Returns theMethodDescriptorof this method.MethodHandlermethodHandler()Obtain theMethodHandlerto use to make client calls.Stringname()Returns the simple name of the method.
-
-
-
Method Detail
-
callCredentials
public io.grpc.CallCredentials callCredentials()
Return theCallCredentialsset on this service.- Returns:
- the
CallCredentialsset 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 theMethodDescriptorof this method.- Type Parameters:
ReqT- the request typeRespT- the response type- Returns:
- The
MethodDescriptorof this method.
-
methodHandler
public MethodHandler methodHandler()
Obtain theMethodHandlerto use to make client calls.- Returns:
- the
MethodHandlerto use to make client calls
-
-