Package io.deephaven.server.session
Class ActionRouter
java.lang.Object
io.deephaven.server.session.ActionRouter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoAction(@Nullable SessionState session, org.apache.arrow.flight.Action action, io.grpc.stub.StreamObserver<org.apache.arrow.flight.Result> observer) Routesactionto the appropriateActionResolver.voidlistActions(@Nullable SessionState session, Consumer<org.apache.arrow.flight.ActionType> visitor) Invokesvisitorfor all of the resolvers.
-
Constructor Details
-
ActionRouter
-
-
Method Details
-
listActions
public void listActions(@Nullable @Nullable SessionState session, Consumer<org.apache.arrow.flight.ActionType> visitor) Invokesvisitorfor all of the resolvers. Used as the basis for implementing FlightService ListActions.- Parameters:
session- the sessionvisitor- the visitor
-
doAction
public void doAction(@Nullable @Nullable SessionState session, org.apache.arrow.flight.Action action, io.grpc.stub.StreamObserver<org.apache.arrow.flight.Result> observer) Routesactionto the appropriateActionResolver. Used as the basis for implementing FlightService DoAction.- Parameters:
session- the sessionaction- the actionobserver- the observer- Throws:
io.grpc.StatusRuntimeException- if zero or more than one resolver is found
-