Class ClientStreamingMethodHandlerSupplier.ClientStreamingIterable<ReqT,RespT>
java.lang.Object
io.helidon.microprofile.grpc.core.AbstractMethodHandlerSupplier.AbstractHandler<ReqT,RespT>
io.helidon.microprofile.grpc.core.ClientStreamingMethodHandlerSupplier.AbstractClientStreamingHandler<ReqT,RespT>
io.helidon.microprofile.grpc.core.ClientStreamingMethodHandlerSupplier.ClientStreamingIterable<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:
- ClientStreamingMethodHandlerSupplier
public static class ClientStreamingMethodHandlerSupplier.ClientStreamingIterable<ReqT,RespT>
extends ClientStreamingMethodHandlerSupplier.AbstractClientStreamingHandler<ReqT,RespT>
A client side only client streaming
MethodHandler that
streams requests from an iterable.
CompletionStage<RespT> invoke(Iterable<ReqT> observer)
-
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 TypeMethodDescriptionbooleanDetermine whether this is a client side only handler.clientStreaming(Object[] args, MethodHandler.ClientStreaming client) Handle a bi-directional client call.protected io.grpc.stub.StreamObserver<ReqT>Invoke the actual client streaming or bi-directional gRPC method handler.Methods inherited from class io.helidon.microprofile.grpc.core.ClientStreamingMethodHandlerSupplier.AbstractClientStreamingHandler
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, serverStreaming, unary
-
Method Details
-
clientOnly
public boolean clientOnly()Description copied from interface:MethodHandlerDetermine whether this is a client side only handler.- Returns:
trueif this handler can only be used on the client
-
invoke
protected io.grpc.stub.StreamObserver<ReqT> invoke(Method method, Object instance, io.grpc.stub.StreamObserver<RespT> observer) throws InvocationTargetException, IllegalAccessException Description copied from class:io.helidon.microprofile.grpc.core.AbstractMethodHandlerSupplier.AbstractHandlerInvoke the actual client streaming or bi-directional 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 onobserver- the method response observer- Returns:
- the
StreamObserverto receive requests from the client - Throws:
InvocationTargetException- if an error occurs invoking the methodIllegalAccessException- if the method cannot be accessed
-
clientStreaming
Description copied from interface:MethodHandlerHandle a bi-directional client call.- Parameters:
args- the call arguments.client- theMethodHandler.ClientStreaminginstance to forward the call to.- Returns:
- the call result
-