Class UnaryMethodHandlerSupplier.AbstractUnaryHandler<ReqT,RespT>
- java.lang.Object
-
- io.helidon.microprofile.grpc.core.AbstractMethodHandlerSupplier.AbstractHandler<ReqT,RespT>
-
- io.helidon.microprofile.grpc.core.UnaryMethodHandlerSupplier.AbstractUnaryHandler<ReqT,RespT>
-
- Type Parameters:
ReqT
- the request typeRespT
- the response type
- All Implemented Interfaces:
io.grpc.stub.ServerCalls.BidiStreamingMethod<ReqT,RespT>
,io.grpc.stub.ServerCalls.ClientStreamingMethod<ReqT,RespT>
,io.grpc.stub.ServerCalls.ServerStreamingMethod<ReqT,RespT>
,io.grpc.stub.ServerCalls.UnaryMethod<ReqT,RespT>
,MethodHandler<ReqT,RespT>
- Direct Known Subclasses:
UnaryMethodHandlerSupplier.FutureResponse
,UnaryMethodHandlerSupplier.FutureResponseNoRequest
,UnaryMethodHandlerSupplier.NoRequestNoResponse
,UnaryMethodHandlerSupplier.RequestNoResponse
,UnaryMethodHandlerSupplier.RequestResponse
,UnaryMethodHandlerSupplier.ResponseOnly
,UnaryMethodHandlerSupplier.Unary
,UnaryMethodHandlerSupplier.UnaryFuture
,UnaryMethodHandlerSupplier.UnaryFutureNoRequest
,UnaryMethodHandlerSupplier.UnaryNoRequest
- Enclosing class:
- UnaryMethodHandlerSupplier
public abstract static class UnaryMethodHandlerSupplier.AbstractUnaryHandler<ReqT,RespT> extends io.helidon.microprofile.grpc.core.AbstractMethodHandlerSupplier.AbstractHandler<ReqT,RespT>
A base class for unary method handlers.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.helidon.grpc.core.MethodHandler
MethodHandler.BidirectionalClient, MethodHandler.ClientStreaming, MethodHandler.ServerStreamingClient, MethodHandler.UnaryClient
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected io.grpc.stub.StreamObserver<ReqT>
invoke(Method method, Object instance, io.grpc.stub.StreamObserver<RespT> observer)
Invoke the actual client streaming or bi-directional gRPC method handler.-
Methods inherited from class io.helidon.microprofile.grpc.core.AbstractMethodHandlerSupplier.AbstractHandler
getGenericResponseType, getRequestType, getResponseType, handleFuture, invoke, invoke, invoke, javaMethodName, methodName, setRequestType, setResponseType, type
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.helidon.grpc.core.MethodHandler
bidirectional, clientOnly, clientStreaming, serverStreaming, unary
-
-
-
-
Method Detail
-
invoke
protected io.grpc.stub.StreamObserver<ReqT> invoke(Method method, Object instance, io.grpc.stub.StreamObserver<RespT> observer)
Description copied from class:io.helidon.microprofile.grpc.core.AbstractMethodHandlerSupplier.AbstractHandler
Invoke the actual client streaming or bi-directional gRPC method handler.- Specified by:
invoke
in classio.helidon.microprofile.grpc.core.AbstractMethodHandlerSupplier.AbstractHandler<ReqT,RespT>
- Parameters:
method
- theMethod
to invokeinstance
- the service instance to invoke the method onobserver
- the method response observer- Returns:
- the
StreamObserver
to receive requests from the client
-
-