Package org.droolsassert.util
Class ReentrantFileLock.ReentrantFileLockFactory
java.lang.Object
org.droolsassert.util.ReentrantFileLock.ReentrantFileLockFactory
- Enclosing class:
ReentrantFileLock
-
Method Summary
Modifier and TypeMethodDescriptionnewLock(int id) Creates new lock for the given id.
Id will be used to uniquely identify the lock (position) in the file.Creates new lock for the given name.
Hash code of the name will be used to compute lock id (position) in the file.
-
Method Details
-
newLock
Creates new lock for the given name.
Hash code of the name will be used to compute lock id (position) in the file.- See Also:
-
newLock
Creates new lock for the given id.
Id will be used to uniquely identify the lock (position) in the file.- See Also:
-