public class MockLockFactoryWrapper extends LockFactory
lockPrefix
Constructor and Description |
---|
MockLockFactoryWrapper(MockDirectoryWrapper dir,
LockFactory delegate) |
Modifier and Type | Method and Description |
---|---|
void |
clearLock(String lockName)
Attempt to clear (forcefully unlock and remove) the
specified lock.
|
String |
getLockPrefix()
Get the prefix in use for all locks created in this LockFactory.
|
Lock |
makeLock(String lockName)
Return a new Lock instance identified by lockName.
|
void |
setLockPrefix(String lockPrefix)
Set the prefix in use for all locks created in this
LockFactory.
|
String |
toString() |
public MockLockFactoryWrapper(MockDirectoryWrapper dir, LockFactory delegate)
public void setLockPrefix(String lockPrefix)
LockFactory
setLockPrefix
in class LockFactory
public String getLockPrefix()
LockFactory
getLockPrefix
in class LockFactory
public Lock makeLock(String lockName)
LockFactory
makeLock
in class LockFactory
lockName
- name of the lock to be created.public void clearLock(String lockName) throws IOException
LockFactory
clearLock
in class LockFactory
lockName
- name of the lock to be cleared.IOException