public class SimpleFSLockFactory extends Object implements LockFactory
Constructor and Description |
---|
SimpleFSLockFactory() |
SimpleFSLockFactory(File dir) |
Modifier and Type | Method and Description |
---|---|
GHLock |
create(String fileName,
boolean writeAccess)
This creates a file for write or read locks depending on the specified writeAccess property.
|
void |
forceRemove(String fileName,
boolean writeAccess)
Removes the specified lock.
|
void |
setLockDir(File lockDir) |
public SimpleFSLockFactory()
public SimpleFSLockFactory(File dir)
public void setLockDir(File lockDir)
setLockDir
in interface LockFactory
public GHLock create(String fileName, boolean writeAccess)
LockFactory
create
in interface LockFactory
public void forceRemove(String fileName, boolean writeAccess)
LockFactory
forceRemove
in interface LockFactory
Copyright © 2012–2020. All rights reserved.