Package com.webmethods.locks
Interface LockManager
-
- All Known Implementing Classes:
BasicJMSLockManager
public interface LockManager
LockManager interface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
releaseObjectReadLock(Node node)
Releases the read lock on the object.void
releaseObjectWriteLock(Node node, int writeUpwards)
Releases the write lock on the node.void
takeObjectReadLock(Node node)
Takes the read lock on the node.void
takeObjectWriteLock(Node node, int writeUpwards)
Takes the write lock on the node.void
tryReleaseObjectReadLock(Node node)
Tries to release the read lock on the object.boolean
tryTakeObjectReadLock(Node node)
Tries to take the read lock on the node.
-
-
-
Method Detail
-
takeObjectWriteLock
void takeObjectWriteLock(Node node, int writeUpwards)
Takes the write lock on the node.- Parameters:
node
-
-
releaseObjectWriteLock
void releaseObjectWriteLock(Node node, int writeUpwards)
Releases the write lock on the node.- Parameters:
node
-
-
takeObjectReadLock
void takeObjectReadLock(Node node)
Takes the read lock on the node.- Parameters:
node
-
-
releaseObjectReadLock
void releaseObjectReadLock(Node node)
Releases the read lock on the object.- Parameters:
node
-
-
tryTakeObjectReadLock
boolean tryTakeObjectReadLock(Node node)
Tries to take the read lock on the node. If lock is not available returns false immediately.- Parameters:
node
-
-
tryReleaseObjectReadLock
void tryReleaseObjectReadLock(Node node)
Tries to release the read lock on the object.- Parameters:
node
-
-
-