Class LockHolder


  • public class LockHolder
    extends java.lang.Object
    This class contains a reentrant read-write lock and offers operations on it. It is used to synchronize the shutdown of the VM and to allow the threads to finish the writes prior to the shutdown, and to block new writers to keep the data consistent.
    Version:
    $Id: $Id
    Author:
    lrosenberg
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void addShutdownHook()
      addShutdownHook.
      static void notifySaved()
      notifySaved.
      static void prepareForSave()
      prepareForSave.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • prepareForSave

        public static void prepareForSave()

        prepareForSave.

      • notifySaved

        public static void notifySaved()

        notifySaved.

      • addShutdownHook

        public static final void addShutdownHook()

        addShutdownHook.