Interface SessionControllerGrpc.AsyncService (4.32.0)

public static interface SessionControllerGrpc.AsyncService

The SessionController provides methods to manage interactive sessions.

Methods

createSession(CreateSessionRequest request, StreamObserver<Operation> responseObserver)

public default void createSession(CreateSessionRequest request, StreamObserver<Operation> responseObserver)

Create an interactive session asynchronously.

Parameters
NameDescription
requestCreateSessionRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

deleteSession(DeleteSessionRequest request, StreamObserver<Operation> responseObserver)

public default void deleteSession(DeleteSessionRequest request, StreamObserver<Operation> responseObserver)

Deletes the interactive session resource. If the session is not in terminal state, it is terminated, and then deleted.

Parameters
NameDescription
requestDeleteSessionRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

getSession(GetSessionRequest request, StreamObserver<Session> responseObserver)

public default void getSession(GetSessionRequest request, StreamObserver<Session> responseObserver)

Gets the resource representation for an interactive session.

Parameters
NameDescription
requestGetSessionRequest
responseObserverio.grpc.stub.StreamObserver<Session>

listSessions(ListSessionsRequest request, StreamObserver<ListSessionsResponse> responseObserver)

public default void listSessions(ListSessionsRequest request, StreamObserver<ListSessionsResponse> responseObserver)

Lists interactive sessions.

Parameters
NameDescription
requestListSessionsRequest
responseObserverio.grpc.stub.StreamObserver<ListSessionsResponse>

terminateSession(TerminateSessionRequest request, StreamObserver<Operation> responseObserver)

public default void terminateSession(TerminateSessionRequest request, StreamObserver<Operation> responseObserver)

Terminates the interactive session.

Parameters
NameDescription
requestTerminateSessionRequest
responseObserverio.grpc.stub.StreamObserver<Operation>