Class WriteLockShutdownHook

java.lang.Object
java.lang.Thread
org.owasp.dependencycheck.utils.WriteLockShutdownHook
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
WriteLockCleanupHook

public abstract class WriteLockShutdownHook extends Thread
Definition of the shutdown hook used during the unexpected shutdown during the update process of a resources.
Author:
Jeremy Long
  • Constructor Details

    • WriteLockShutdownHook

      public WriteLockShutdownHook()
  • Method Details

    • 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.