Interface OShutdownHandler

All Known Implementing Classes:
Orient.OShutdownOrientDBInstancesHandler

public interface OShutdownHandler
Handler which is used inside of shutdown priority queue. The higher priority we have the earlier this handler will be executed.

There are set of predefined priorities which are used for system shutdown handlers which allows to add your handlers before , between and after them.

See Also:
  • Field Details

    • SHUTDOWN_WORKERS_PRIORITY

      static final int SHUTDOWN_WORKERS_PRIORITY
      Priority of com.orientechnologies.orient.core.Orient.OShutdownWorkersHandler handler.
      See Also:
    • SHUTDOWN_PENDING_THREADS_PRIORITY

      static final int SHUTDOWN_PENDING_THREADS_PRIORITY
      Priority of com.orientechnologies.orient.core.Orient.OShutdownPendingThreadsHandler handler.
      See Also:
    • SHUTDOWN_ENGINES_PRIORITY

      static final int SHUTDOWN_ENGINES_PRIORITY
      See Also:
    • SHUTDOWN_PROFILER_PRIORITY

      static final int SHUTDOWN_PROFILER_PRIORITY
      Priority of com.orientechnologies.orient.core.Orient.OShutdownProfilerHandler handler.
      See Also:
    • SHUTDOWN_CALL_LISTENERS

      static final int SHUTDOWN_CALL_LISTENERS
      Priority of com.orientechnologies.orient.core.Orient.OShutdownCallListenersHandler handler.
      See Also:
  • Method Details

    • getPriority

      int getPriority()
      Returns:
      Handlers priority.
    • shutdown

      void shutdown() throws Exception
      Code which executed during system shutdown. During call of Orient.shutdown() method which is called during JVM shutdown.
      Throws:
      Exception