Class ServerStreamingMethodHandlerSupplier.StreamResponse<ReqT,RespT>
java.lang.Object
io.helidon.microprofile.grpc.core.AbstractMethodHandlerSupplier.AbstractHandler<ReqT,RespT>
io.helidon.microprofile.grpc.core.ServerStreamingMethodHandlerSupplier.AbstractServerStreamingHandler<ReqT,RespT>
io.helidon.microprofile.grpc.core.ServerStreamingMethodHandlerSupplier.StreamResponse<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>
- Enclosing class:
- ServerStreamingMethodHandlerSupplier
public static class ServerStreamingMethodHandlerSupplier.StreamResponse<ReqT,RespT>
extends ServerStreamingMethodHandlerSupplier.AbstractServerStreamingHandler<ReqT,RespT>
A server streaming
MethodHandler that calls a calls a server
streaming method handler method of the form.
Stream<RespT> invoke(ReqT request)
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.grpc.core.MethodHandler
MethodHandler.BidirectionalClient, MethodHandler.ClientStreaming, MethodHandler.ServerStreamingClient, MethodHandler.UnaryClient -
Method Summary
Modifier and TypeMethodDescriptionprotected voidInvoke the actual unary or server streaming gRPC method handler.serverStreaming(Object[] args, MethodHandler.ServerStreamingClient client) Handle a bi-directional client call.Methods inherited from class io.helidon.microprofile.grpc.core.ServerStreamingMethodHandlerSupplier.AbstractServerStreamingHandler
invokeMethods inherited from class io.helidon.microprofile.grpc.core.AbstractMethodHandlerSupplier.AbstractHandler
getGenericResponseType, getRequestType, getResponseType, handleFuture, invoke, invoke, javaMethodName, methodName, setRequestType, setResponseType, typeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.helidon.grpc.core.MethodHandler
bidirectional, clientOnly, clientStreaming, unary
-
Method Details
-
invoke
protected void invoke(Method method, Object instance, ReqT request, io.grpc.stub.StreamObserver<RespT> observer) throws InvocationTargetException, IllegalAccessException Description copied from class:io.helidon.microprofile.grpc.core.AbstractMethodHandlerSupplier.AbstractHandlerInvoke the actual unary or server streaming gRPC method handler.- Specified by:
invokein classio.helidon.microprofile.grpc.core.AbstractMethodHandlerSupplier.AbstractHandler<ReqT,RespT> - Parameters:
method- theMethodto invokeinstance- the service instance to invoke the method onrequest- the method requestobserver- the method response observer- Throws:
InvocationTargetException- if an error occurs invoking the methodIllegalAccessException- if the method cannot be accessed
-
serverStreaming
Description copied from interface:MethodHandlerHandle a bi-directional client call.- Parameters:
args- the call arguments.client- theMethodHandler.ServerStreamingClientinstance to forward the call to.- Returns:
- the call result
-