Package org.owasp.dependencycheck.utils
Class WriteLockShutdownHook
- java.lang.Object
-
- java.lang.Thread
-
- org.owasp.dependencycheck.utils.WriteLockShutdownHook
-
- All Implemented Interfaces:
java.lang.Runnable
- Direct Known Subclasses:
WriteLockCleanupHook
public abstract class WriteLockShutdownHook extends java.lang.ThreadDefinition of the shutdown hook used during the unexpected shutdown during the update process of a resources.- Author:
- Jeremy Long
-
-
Constructor Summary
Constructors Constructor Description WriteLockShutdownHook()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract voidadd(WriteLock lock)Adds the shutdown hook.abstract voidremove()Removes the shutdown hook.-
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, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Method Detail
-
add
public abstract void add(WriteLock lock)
Adds the shutdown hook.- Parameters:
lock- the Write Lock reference
-
remove
public abstract void remove()
Removes the shutdown hook.
-
-