public class BusyLocker extends Object implements DatabaseLocker
Date: 14.10.14
| Modifier and Type | Field and Description |
|---|---|
protected String |
BUSY_VERSION |
protected static org.slf4j.Logger |
log |
protected boolean |
ownLock |
| Constructor and Description |
|---|
BusyLocker(DBVersionMeta dbVersionMeta) |
| Modifier and Type | Method and Description |
|---|---|
protected DBVersionMeta |
createLockMeta(DBVersionMeta dbVersionMeta) |
int |
getDelayBetweenAttempts() |
DBVersionMeta |
getLockMeta() |
int |
getMaxAttempts() |
boolean |
isEnabled() |
boolean |
isOwnLock() |
void |
lock(JdbcDatabase database) |
void |
setDelayBetweenAttempts(int delayBetweenAttempts) |
void |
setMaxAttempts(int maxAttempts) |
void |
setOwnLock(boolean ownLock) |
void |
unlock(JdbcDatabase database) |
protected final String BUSY_VERSION
protected static final org.slf4j.Logger log
protected boolean ownLock
public BusyLocker(DBVersionMeta dbVersionMeta)
public int getMaxAttempts()
public void setMaxAttempts(int maxAttempts)
public int getDelayBetweenAttempts()
public void setDelayBetweenAttempts(int delayBetweenAttempts)
public boolean isEnabled()
isEnabled in interface DatabaseLockerpublic void lock(JdbcDatabase database)
lock in interface DatabaseLockerpublic DBVersionMeta getLockMeta()
protected DBVersionMeta createLockMeta(DBVersionMeta dbVersionMeta)
public boolean isOwnLock()
public void setOwnLock(boolean ownLock)
public void unlock(JdbcDatabase database)
unlock in interface DatabaseLockerCopyright © 2008–2018. All rights reserved.