Class OSoftThread
java.lang.Object
java.lang.Thread
com.orientechnologies.common.thread.OSoftThread
- Direct Known Subclasses:
OConsoleProgressWriter,ONetworkProtocol
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidprotected abstract voidexecute()booleanvoidrun()voidvoidsetDumpExceptions(boolean dumpExceptions) voidshutdown()voidvoidstartup()Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
Constructor Details
-
OSoftThread
-
OSoftThread
-
-
Method Details
-
execute
- Throws:
Exception
-
startup
public void startup() -
shutdown
public void shutdown() -
sendShutdown
public void sendShutdown() -
softShutdown
public void softShutdown() -
isShutdownFlag
public boolean isShutdownFlag() -
run
public void run() -
setDumpExceptions
public void setDumpExceptions(boolean dumpExceptions) -
beforeExecution
- Throws:
InterruptedException
-
afterExecution
- Throws:
InterruptedException
-