Class UnaryMethodHandlerSupplier
- java.lang.Object
-
- io.helidon.microprofile.grpc.core.UnaryMethodHandlerSupplier
-
- All Implemented Interfaces:
MethodHandlerSupplier
public class UnaryMethodHandlerSupplier extends Object
A supplier ofMethodHandler
s for unary gRPC methods.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UnaryMethodHandlerSupplier.AbstractUnaryHandler<ReqT,RespT>
A base class for unary method handlers.static class
UnaryMethodHandlerSupplier.FutureResponse<ReqT,RespT>
A unaryMethodHandler
that calls a handler method of the form.static class
UnaryMethodHandlerSupplier.FutureResponseNoRequest<ReqT,RespT>
A unaryMethodHandler
that calls a handler method of the form.static class
UnaryMethodHandlerSupplier.NoRequestNoResponse<ReqT,RespT>
A unaryMethodHandler
that calls a handler method of the form.static class
UnaryMethodHandlerSupplier.RequestNoResponse<ReqT,RespT>
A unaryMethodHandler
that calls a handler method of the form.static class
UnaryMethodHandlerSupplier.RequestResponse<ReqT,RespT>
A unaryMethodHandler
that calls a handler method of the form.static class
UnaryMethodHandlerSupplier.ResponseOnly<ReqT,RespT>
A unaryMethodHandler
that calls a handler method of the form.static class
UnaryMethodHandlerSupplier.Unary<ReqT,RespT>
A unaryMethodHandler
that calls a standard unary method handler method of the form.static class
UnaryMethodHandlerSupplier.UnaryFuture<ReqT,RespT>
A unaryMethodHandler
that calls a handler method of the form.static class
UnaryMethodHandlerSupplier.UnaryFutureNoRequest<ReqT,RespT>
A unaryMethodHandler
that calls a handler method of the form.static class
UnaryMethodHandlerSupplier.UnaryNoRequest<ReqT,RespT>
A unaryMethodHandler
that 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 aMethodHandler
for a method.boolean
supplies(AnnotatedMethod method)
Determine whether thisMethodHandlerSupplier
can supply aMethodHandler
for a given method and type.
-
-
-
Method Detail
-
supplies
public boolean supplies(AnnotatedMethod method)
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<?> instance)
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
forinstance
- the supplier to supply the actual call handler- Returns:
- a
MethodHandler
for the method
-
-