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 Details

    • getTaskName

      String getTaskName()
      obtain the task name.
      Returns:
      the task name
    • prepareTask

      default void prepareTask(TethysUIThreadManager pManager) throws OceanusException
      prepare task.
      Parameters:
      pManager - the thread manager
      Throws:
      OceanusException - on error
    • performTask

      T performTask(TethysUIThreadManager pManager) throws OceanusException
      Perform the task.
      Parameters:
      pManager - the thread manager
      Returns:
      the result
      Throws:
      OceanusException - on error
    • processResult

      default void processResult(T pResult) throws OceanusException
      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