Class UnaryMethodHandlerSupplier
- java.lang.Object
-
- io.helidon.microprofile.grpc.core.UnaryMethodHandlerSupplier
-
- All Implemented Interfaces:
MethodHandlerSupplier
public class UnaryMethodHandlerSupplier extends Object
A supplier ofMethodHandlers for unary gRPC methods.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUnaryMethodHandlerSupplier.AbstractUnaryHandler<ReqT,RespT>A base class for unary method handlers.static classUnaryMethodHandlerSupplier.FutureResponse<ReqT,RespT>A unaryMethodHandlerthat calls a handler method of the form.static classUnaryMethodHandlerSupplier.FutureResponseNoRequest<ReqT,RespT>A unaryMethodHandlerthat calls a handler method of the form.static classUnaryMethodHandlerSupplier.NoRequestNoResponse<ReqT,RespT>A unaryMethodHandlerthat calls a handler method of the form.static classUnaryMethodHandlerSupplier.RequestNoResponse<ReqT,RespT>A unaryMethodHandlerthat calls a handler method of the form.static classUnaryMethodHandlerSupplier.RequestResponse<ReqT,RespT>A unaryMethodHandlerthat calls a handler method of the form.static classUnaryMethodHandlerSupplier.ResponseOnly<ReqT,RespT>A unaryMethodHandlerthat calls a handler method of the form.static classUnaryMethodHandlerSupplier.Unary<ReqT,RespT>A unaryMethodHandlerthat calls a standard unary method handler method of the form.static classUnaryMethodHandlerSupplier.UnaryFuture<ReqT,RespT>A unaryMethodHandlerthat calls a handler method of the form.static classUnaryMethodHandlerSupplier.UnaryFutureNoRequest<ReqT,RespT>A unaryMethodHandlerthat calls a handler method of the form.static classUnaryMethodHandlerSupplier.UnaryNoRequest<ReqT,RespT>A unaryMethodHandlerthat calls a unary method handler method of the form.
-
Constructor Summary
Constructors Constructor Description UnaryMethodHandlerSupplier()Create a supplier of handlers for server streaming methods.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <ReqT,RespT>
MethodHandler<ReqT,RespT>get(String methodName, AnnotatedMethod method, Supplier<?> instance)Supply aMethodHandlerfor a method.booleansupplies(AnnotatedMethod method)Determine whether thisMethodHandlerSuppliercan supply aMethodHandlerfor a given method and type.
-
-
-
Method Detail
-
supplies
public boolean supplies(AnnotatedMethod method)
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<?> instance)
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 aMethodHandlerforinstance- the supplier to supply the actual call handler- Returns:
- a
MethodHandlerfor the method
-
-