Class WriteLockShutdownHook
java.lang.Object
java.lang.Thread
org.owasp.dependencycheck.utils.WriteLockShutdownHook
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
WriteLockCleanupHook
Definition of the shutdown hook used during the unexpected shutdown during
the update process of a resources.
- Author:
- Jeremy Long
-
Nested Class Summary
Nested classes/interfaces inherited from class Thread
Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
Fields inherited from class Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class 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, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
Constructor Details
-
WriteLockShutdownHook
public WriteLockShutdownHook()
-
-
Method Details
-
add
Adds the shutdown hook.- Parameters:
lock- the Write Lock reference
-
remove
public abstract void remove()Removes the shutdown hook.
-