public abstract class AbstractTimerRunnable<OutputType> extends Object implements Runnable
Modifier | Constructor and Description |
---|---|
protected |
AbstractTimerRunnable(LoadingIndicator loadingIndicator,
int threadId,
int timerDelayInMilliseconds) |
Modifier and Type | Method and 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() |
protected AbstractTimerRunnable(LoadingIndicator loadingIndicator, int threadId, int timerDelayInMilliseconds)
protected abstract OutputType execute() throws Exception
Exception
protected abstract String getExceptionLoggingMessage()
protected void onFailed(Exception exception)
protected void onSuccessfullyFinish(OutputType result)
public final void executeAsync()
protected void onTimerWakeUp(String messageToDisplay)
protected final boolean onDisplayLoadingIndicatorMessage(String messageToDisplay)
protected final boolean isRunning()
Copyright © 2014–2022 European Space Agency (ESA). All rights reserved.