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 protectedAbstractTimerRunnable(LoadingIndicator loadingIndicator, int threadId, int timerDelayInMilliseconds)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract OutputTypeexecute()voidexecuteAsync()protected abstract StringgetExceptionLoggingMessage()protected booleanisRunning()protected booleanonDisplayLoadingIndicatorMessage(String messageToDisplay)protected voidonFailed(Exception exception)protected voidonSuccessfullyFinish(OutputType result)protected voidonTimerWakeUp(String messageToDisplay)voidrun()
-
-
-
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()
-
-