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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intPriority of com.orientechnologies.orient.core.Orient.OShutdownCallListenersHandler handler.static final intPriority ofOrient.OShutdownOrientDBInstancesHandlerhandler.static final intPriority of com.orientechnologies.orient.core.Orient.OShutdownPendingThreadsHandler handler.static final intPriority of com.orientechnologies.orient.core.Orient.OShutdownProfilerHandler handler.static final intPriority ofcom.orientechnologies.orient.core.Orient.OShutdownWorkersHandlerhandler. -
Method Summary
Modifier and TypeMethodDescriptionintvoidshutdown()Code which executed during system shutdown.
-
Field Details
-
SHUTDOWN_WORKERS_PRIORITY
static final int SHUTDOWN_WORKERS_PRIORITYPriority ofcom.orientechnologies.orient.core.Orient.OShutdownWorkersHandlerhandler.- See Also:
-
SHUTDOWN_PENDING_THREADS_PRIORITY
static final int SHUTDOWN_PENDING_THREADS_PRIORITYPriority of com.orientechnologies.orient.core.Orient.OShutdownPendingThreadsHandler handler.- See Also:
-
SHUTDOWN_ENGINES_PRIORITY
static final int SHUTDOWN_ENGINES_PRIORITYPriority ofOrient.OShutdownOrientDBInstancesHandlerhandler.- See Also:
-
SHUTDOWN_PROFILER_PRIORITY
static final int SHUTDOWN_PROFILER_PRIORITYPriority of com.orientechnologies.orient.core.Orient.OShutdownProfilerHandler handler.- See Also:
-
SHUTDOWN_CALL_LISTENERS
static final int SHUTDOWN_CALL_LISTENERSPriority of com.orientechnologies.orient.core.Orient.OShutdownCallListenersHandler handler.- See Also:
-
-
Method Details
-
getPriority
int getPriority()- Returns:
- Handlers priority.
-
shutdown
Code which executed during system shutdown. During call ofOrient.shutdown()method which is called during JVM shutdown.- Throws:
Exception
-