Class AbstractTimerRunnable<OutputType>

java.lang.Object
org.esa.snap.ui.loading.AbstractTimerRunnable<OutputType>
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
ReadProductInspectorTimerRunnable

public abstract class AbstractTimerRunnable<OutputType> extends Object implements Runnable
Created by jcoravu on 31/12/2018.
  • Constructor Details

    • AbstractTimerRunnable

      protected AbstractTimerRunnable(LoadingIndicator loadingIndicator, int threadId, int timerDelayInMilliseconds)
  • Method Details

    • execute

      protected abstract OutputType execute() throws Exception
      Throws:
      Exception
    • getExceptionLoggingMessage

      protected abstract String getExceptionLoggingMessage()
    • run

      public final void run()
      Specified by:
      run in interface Runnable
    • onFailed

      protected void onFailed(Exception exception)
    • onSuccessfullyFinish

      protected void onSuccessfullyFinish(OutputType result)
    • executeAsync

      public final void executeAsync()
    • onTimerWakeUp

      protected void onTimerWakeUp(String messageToDisplay)
    • onDisplayLoadingIndicatorMessage

      protected final boolean onDisplayLoadingIndicatorMessage(String messageToDisplay)
    • isRunning

      protected final boolean isRunning()