Class ServerStreamingMethodHandlerSupplier
java.lang.Object
io.helidon.microprofile.grpc.core.ServerStreamingMethodHandlerSupplier
- All Implemented Interfaces:
MethodHandlerSupplier
A supplier of
MethodHandlers for server streaming gRPC methods.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA base class for server streamingMethodHandlers.static classA server streamingMethodHandlerthat calls a standard server streaming method handler method of the form.static classA server streamingMethodHandlerthat calls a calls a server streaming method handler method of the form.static classA server streamingMethodHandlerthat calls a calls a server streaming method handler method of the form.static classA server streamingMethodHandlerthat calls a calls a server streaming method handler method of the form. -
Constructor Summary
ConstructorsConstructorDescriptionCreate a supplier of handlers for server streaming methods. -
Method Summary
Modifier and TypeMethodDescription<ReqT,RespT>
MethodHandler<ReqT, RespT> get(String methodName, AnnotatedMethod method, Supplier<?> instanceSupplier) Supply aMethodHandlerfor a method.booleansupplies(AnnotatedMethod method) Determine whether thisMethodHandlerSuppliercan supply aMethodHandlerfor a given method and type.
-
Constructor Details
-
ServerStreamingMethodHandlerSupplier
public ServerStreamingMethodHandlerSupplier()Create a supplier of handlers for server streaming methods.
-
-
Method Details
-
supplies
Description copied from interface:MethodHandlerSupplierDetermine whether thisMethodHandlerSuppliercan supply aMethodHandlerfor a given method and type.- Specified by:
suppliesin interfaceMethodHandlerSupplier- Parameters:
method- theAnnotatedMethodto supply a handler for- Returns:
trueif 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:MethodHandlerSupplierSupply aMethodHandlerfor a method.- Type Parameters:
ReqT- the request typeRespT- the response type- Parameters:
methodName- the gRPC method namemethod- the method to supply aMethodHandlerforinstanceSupplier- the supplier to supply the actual call handler- Returns:
- a
MethodHandlerfor the method
-