Package io.deephaven.server.session
Class ActionRouter
java.lang.Object
io.deephaven.server.session.ActionRouter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
doAction
(@Nullable SessionState session, org.apache.arrow.flight.Action action, io.grpc.stub.StreamObserver<org.apache.arrow.flight.Result> observer) Routesaction
to the appropriateActionResolver
.void
listActions
(@Nullable SessionState session, Consumer<org.apache.arrow.flight.ActionType> visitor) Invokesvisitor
for all of the resolvers.
-
Constructor Details
-
ActionRouter
-
-
Method Details
-
listActions
public void listActions(@Nullable @Nullable SessionState session, Consumer<org.apache.arrow.flight.ActionType> visitor) Invokesvisitor
for 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) Routesaction
to 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
-