Package net.anotheria.anodoc.service
Class LockHolder
- java.lang.Object
-
- net.anotheria.anodoc.service.LockHolder
-
public class LockHolder extends java.lang.ObjectThis 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 voidaddShutdownHook()addShutdownHook.static voidnotifySaved()notifySaved.static voidprepareForSave()prepareForSave.
-