Class OSoftThread

java.lang.Object
java.lang.Thread
com.orientechnologies.common.thread.OSoftThread
All Implemented Interfaces:
OService, Runnable
Direct Known Subclasses:
OConsoleProgressWriter, ONetworkProtocol

public abstract class OSoftThread extends Thread implements OService
  • Constructor Details

  • Method Details

    • execute

      protected abstract void execute() throws Exception
      Throws:
      Exception
    • startup

      public void startup()
      Specified by:
      startup in interface OService
    • shutdown

      public void shutdown()
      Specified by:
      shutdown in interface OService
    • sendShutdown

      public void sendShutdown()
    • softShutdown

      public void softShutdown()
    • isShutdownFlag

      public boolean isShutdownFlag()
    • run

      public void run()
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread
    • setDumpExceptions

      public void setDumpExceptions(boolean dumpExceptions)
    • beforeExecution

      protected void beforeExecution() throws InterruptedException
      Throws:
      InterruptedException
    • afterExecution

      protected void afterExecution() throws InterruptedException
      Throws:
      InterruptedException