Interface SessionControllerGrpc.AsyncService (4.41.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
Name Description
request CreateSessionRequest
responseObserver io.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
Name Description
request DeleteSessionRequest
responseObserver io.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
Name Description
request GetSessionRequest
responseObserver io.grpc.stub.StreamObserver<Session>

listSessions(ListSessionsRequest request, StreamObserver<ListSessionsResponse> responseObserver)

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

Lists interactive sessions.

Parameters
Name Description
request ListSessionsRequest
responseObserver io.grpc.stub.StreamObserver<ListSessionsResponse>

terminateSession(TerminateSessionRequest request, StreamObserver<Operation> responseObserver)

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

Terminates the interactive session.

Parameters
Name Description
request TerminateSessionRequest
responseObserver io.grpc.stub.StreamObserver<Operation>