@ThreadSafe public class StandaloneLockingService extends AbstractLockingService<ReentrantLock>
LockingService implementation that is used by ModeShape when running in non-clustered (local) mode.logger| Constructor and Description |
|---|
StandaloneLockingService() |
StandaloneLockingService(long lockTimeoutMillis) |
| Modifier and Type | Method and Description |
|---|---|
protected ReentrantLock |
createLock(String name) |
protected boolean |
releaseLock(ReentrantLock lock) |
protected void |
validateLock(ReentrantLock lock) |
doLock, doShutdown, shutdown, tryLock, tryLock, unlock, unlockpublic StandaloneLockingService()
public StandaloneLockingService(long lockTimeoutMillis)
protected ReentrantLock createLock(String name)
createLock in class AbstractLockingService<ReentrantLock>protected void validateLock(ReentrantLock lock)
validateLock in class AbstractLockingService<ReentrantLock>protected boolean releaseLock(ReentrantLock lock)
releaseLock in class AbstractLockingService<ReentrantLock>Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.