Package io.bdeploy.bhive.objects
Class LockableDatabase
java.lang.Object
io.bdeploy.bhive.objects.LockableDatabase
- Direct Known Subclasses:
ManifestDatabase,ObjectDatabase
Base class for a database which requires locked modifications for
parallel-safety (JVM overarching).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static interfaceInterface for operations that need to lock the database (basically every writing operation). -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
LockableDatabase
- Parameters:
root- the root directory of the database. If the underlying filesystem does not supportPath.toFile()(for instance ZIP file), there is no locking capability.
-
-
Method Details
-
locked
- Parameters:
toLock- a database-modifying operation (insertion, deletion, ...).
-