Package org.esa.snap.ui.loading
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 Summary
Constructors Modifier Constructor Description protected
AbstractTimerRunnable(LoadingIndicator loadingIndicator, int threadId, int timerDelayInMilliseconds)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract OutputType
execute()
void
executeAsync()
protected abstract String
getExceptionLoggingMessage()
protected boolean
isRunning()
protected boolean
onDisplayLoadingIndicatorMessage(String messageToDisplay)
protected void
onFailed(Exception exception)
protected void
onSuccessfullyFinish(OutputType result)
protected void
onTimerWakeUp(String messageToDisplay)
void
run()
-
-
-
Constructor Detail
-
AbstractTimerRunnable
protected AbstractTimerRunnable(LoadingIndicator loadingIndicator, int threadId, int timerDelayInMilliseconds)
-
-
Method Detail
-
execute
protected abstract OutputType execute() throws Exception
- Throws:
Exception
-
getExceptionLoggingMessage
protected abstract String getExceptionLoggingMessage()
-
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()
-
-