Interface Execution

  • All Known Subinterfaces:
    ProcedureExecution, ResultSetExecution, ReusableExecution<C>, UpdateExecution

    public interface Execution
    An execution represents the state and lifecycle for a particular command execution. The methods provided on this interface define standard lifecycle methods. When execution completes, the close() will be called. If execution must be aborted, due to user or administrator action, the cancel() will be called.
    • Method Detail

      • close

        void close()
        Terminates the execution normally.
      • cancel

        void cancel()
             throws TranslatorException
        Cancels the execution abnormally. This will happen via a different thread from the one performing the execution, so should be expected to happen in a multi-threaded scenario.
        Throws:
        TranslatorException