Class SendCommandRequest

    • Method Detail

      • sessionToken

        public final String sessionToken()

        Specifies the session token for the current command. A session token is constant throughout the life of the session.

        To obtain a session token, run the StartSession command. This SessionToken is required for every subsequent command that is issued during the current session.

        Returns:
        Specifies the session token for the current command. A session token is constant throughout the life of the session.

        To obtain a session token, run the StartSession command. This SessionToken is required for every subsequent command that is issued during the current session.

      • startSession

        public final StartSessionRequest startSession()

        Command to start a new session. A session token is obtained as part of the response.

        Returns:
        Command to start a new session. A session token is obtained as part of the response.
      • startTransaction

        public final StartTransactionRequest startTransaction()

        Command to start a new transaction.

        Returns:
        Command to start a new transaction.
      • endSession

        public final EndSessionRequest endSession()

        Command to end the current session.

        Returns:
        Command to end the current session.
      • commitTransaction

        public final CommitTransactionRequest commitTransaction()

        Command to commit the specified transaction.

        Returns:
        Command to commit the specified transaction.
      • abortTransaction

        public final AbortTransactionRequest abortTransaction()

        Command to abort the current transaction.

        Returns:
        Command to abort the current transaction.
      • executeStatement

        public final ExecuteStatementRequest executeStatement()

        Command to execute a statement in the specified transaction.

        Returns:
        Command to execute a statement in the specified transaction.
      • fetchPage

        public final FetchPageRequest fetchPage()

        Command to fetch a page.

        Returns:
        Command to fetch a page.
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object