| java.lang.Object com.sun.jbi.management.util.LockManager
LockManager | public class LockManager (Code) | | Utility class to manage the acquition and release of a ReentrantReadWrite Lock.
author: Sun Microsystems, Inc |
STRING_TRANSLATOR_NAME | final static String STRING_TRANSLATOR_NAME(Code) | | |
LockManager | public LockManager(ReentrantReadWriteLock lock, String lockName, ManagementContext ctx, String lockInterval)(Code) | | Creates a new instance of LockManager
Parameters: lock - - the ReentrantReadWriteLock to be managed Parameters: lockName - - user friendly name for the lock Parameters: ctx - - management context Parameters: lockInterval - - secons to wait for acquiring a registry read/write lock. |
acquireReadLock | public void acquireReadLock() throws RegistryException(Code) | | Acquire Read Lock
throws: a - RegistryException if a Read Lock cannot be obtained after waiting for the lock interval |
acquireWriteLock | public void acquireWriteLock() throws RegistryException(Code) | | Acquire write lock to the in-memory registry lock.
throws: a - RegistryException if a Write Lock cannot be obtained after waiting for the lock wait interval |
releaseReadLock | public void releaseReadLock()(Code) | | Release Read Lock
|
releaseWriteLock | public void releaseWriteLock()(Code) | | Release write lock
|
|
|