Class ClientStreamingMethodHandlerSupplier
java.lang.Object
io.helidon.microprofile.grpc.core.ClientStreamingMethodHandlerSupplier
- All Implemented Interfaces:
MethodHandlerSupplier
A supplier of
MethodHandler
s for client streaming gRPC methods.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A base class for client streamingMethodHandler
s.static class
A client streamingMethodHandler
that calls a standard client streaming method handler method of the form.static class
A client side only client streamingMethodHandler
that streams requests from an iterable.static class
A client side only client streamingMethodHandler
that streams requests from a stream.static class
A client streamingMethodHandler
that calls a standard client streaming method handler method of the form. -
Constructor Summary
ConstructorDescriptionCreate a supplier of handlers for client streaming methods. -
Method Summary
Modifier and TypeMethodDescription<ReqT,
RespT>
MethodHandler<ReqT, RespT> get
(String methodName, AnnotatedMethod method, Supplier<?> instanceSupplier) Supply aMethodHandler
for a method.boolean
supplies
(AnnotatedMethod method) Determine whether thisMethodHandlerSupplier
can supply aMethodHandler
for a given method and type.
-
Constructor Details
-
ClientStreamingMethodHandlerSupplier
public ClientStreamingMethodHandlerSupplier()Create a supplier of handlers for client streaming methods.
-
-
Method Details
-
supplies
Description copied from interface:MethodHandlerSupplier
Determine whether thisMethodHandlerSupplier
can supply aMethodHandler
for a given method and type.- Specified by:
supplies
in interfaceMethodHandlerSupplier
- Parameters:
method
- theAnnotatedMethod
to supply a handler for- Returns:
true
if this supplier can supply a handler for the method
-
get
public <ReqT,RespT> MethodHandler<ReqT,RespT> get(String methodName, AnnotatedMethod method, Supplier<?> instanceSupplier) Description copied from interface:MethodHandlerSupplier
Supply aMethodHandler
for a method.- Type Parameters:
ReqT
- the request typeRespT
- the response type- Parameters:
methodName
- the gRPC method namemethod
- the method to supply aMethodHandler
forinstanceSupplier
- the supplier to supply the actual call handler- Returns:
- a
MethodHandler
for the method
-