Interface ResponseAction<RespT>
- All Known Subinterfaces:
TerminatingResponseAction<RespT>
public interface ResponseAction<RespT>
Interface defining a single action, which can interact with the
StreamObserver.- Author:
- Fadelis
-
Method Summary
Modifier and TypeMethodDescriptionvoidExecute a response action on theStreamObserver.default booleanDetermines if theResponseActionis a terminating action.
-
Method Details
-
execute
Execute a response action on the
StreamObserver.It can be either sending a response via
StreamObserver.onNext(V)or returning an error viaStreamObserver.onError(java.lang.Throwable). -
isTerminating
default boolean isTerminating()Determines if theResponseActionis a terminating action. By default it isfalseand will be true for exception actions, which terminate the gRPC call.
-