Interface TethysUIThread<T>
- Type Parameters:
T- the thread result
- All Known Implementing Classes:
PrometheusThreadCreateBackup,PrometheusThreadCreateDatabase,PrometheusThreadCreateTables,PrometheusThreadCreateXMLFile,PrometheusThreadLoadBackup,PrometheusThreadLoadDatabase,PrometheusThreadLoadXMLFile,PrometheusThreadPurgeDatabase,PrometheusThreadRenewSecurity,PrometheusThreadStoreDatabase,PrometheusThreadUpdatePassword
public interface TethysUIThread<T>
Metis Thread.
-
Method Summary
Modifier and TypeMethodDescriptionobtain the task name.default voidinterruptForCancel.performTask(TethysUIThreadManager pManager) Perform the task.default voidprepareTask(TethysUIThreadManager pManager) prepare task.default voidprocessResult(T pResult) process result.
-
Method Details
-
getTaskName
String getTaskName()obtain the task name.- Returns:
- the task name
-
prepareTask
prepare task.- Parameters:
pManager- the thread manager- Throws:
OceanusException- on error
-
performTask
Perform the task.- Parameters:
pManager- the thread manager- Returns:
- the result
- Throws:
OceanusException- on error
-
processResult
process result.- Parameters:
pResult- the result- Throws:
OceanusException- on error
-
interruptForCancel
default void interruptForCancel()interruptForCancel.Hook to allow threads on a long-running read to close the file and force an interrupt
-