public interface ResponseAction<RespT>
StreamObserver.| Modifier and Type | Method and Description |
|---|---|
void |
execute(io.grpc.stub.StreamObserver<RespT> responseObserver)
Execute a response action on the
StreamObserver. |
default boolean |
isTerminating()
Determines if the
ResponseAction is a terminating action. |
void execute(@Nonnull io.grpc.stub.StreamObserver<RespT> responseObserver)
Execute a response action on the StreamObserver.
It can be either sending a response via StreamObserver.onNext(V)
or returning an error via StreamObserver.onError(java.lang.Throwable).
default boolean isTerminating()
ResponseAction is a terminating action. By default it is
false and will be true for exception actions, which terminate the gRPC call.Copyright © 2023. All rights reserved.