Interface OperationTracker

    • Method Detail

      • run

        void run​(java.lang.String description,
                 java.lang.Runnable operation)
        Executes the operation. If the operation throws a RuntimeException it will be logged and rethrown wrapped as a OperationException.
        Parameters:
        description - used if there is an exception
        operation - to execute
      • invoke

        <T> T invoke​(java.lang.String description,
                     Invokable<T> operation)
        As with run(String, Runnable), but the operation may return a value.
        Parameters:
        description - used if there is an exception
        operation - to invoke
        Returns:
        result of operation
      • perform

        <T> T perform​(java.lang.String description,
                      IOOperation<T> operation)
               throws java.io.IOException
        As with invoke(String, Invokable), but the operation may throw an IOException.
        Parameters:
        description - used if there is an exception (outside of IOException)
        operation - to perform
        Returns:
        result of operation
        Throws:
        java.io.IOException
        Since:
        5.4