ps.setString(1, lockName); if (getLog().isDebugEnabled()) { getLog().debug( "Lock '" + lockName + "' is being obtained: " + Thread.currentThread().getName()); getLog().debug( "Inserting new lock row for lock: '" + lockName + "' being obtained by thread: " + Thread.currentThread().getName()); " for lock named: " + lockName, getTablePrefix(), getSchedulerNameLiteral())); initCause = sqle; if (getLog().isDebugEnabled()) { getLog().debug( "Lock '" + lockName + "' was not obtained by: " + Thread.currentThread().getName() + (count < 3 ? " - will try again." : ""));
protected String getSelectWithLockSQL() { return getSQL(); }
public void setSelectWithLockSQL(String selectWithLockSQL) { setSQL(selectWithLockSQL); } }
ps.setString(1, lockName); if (getLog().isDebugEnabled()) { getLog().debug( "Lock '" + lockName + "' is being obtained: " + Thread.currentThread().getName()); throw new SQLException(Util.rtp( "No row exists in table " + TABLE_PREFIX_SUBST + TABLE_LOCKS + " for lock named: " + lockName, getTablePrefix())); if (getLog().isDebugEnabled()) { getLog().debug( "Lock '" + lockName + "' was not obtained by: " + Thread.currentThread().getName());
setLockHandler(new StdRowLockSemaphore(getTablePrefix(), getInstanceName(), getSelectWithLockSQL())); } else { getLog().info(
ps.setString(1, lockName); if (getLog().isDebugEnabled()) { getLog().debug( "Lock '" + lockName + "' is being obtained: " + Thread.currentThread().getName()); throw new SQLException(Util.rtp( "No row exists in table " + TABLE_PREFIX_SUBST + TABLE_LOCKS + " for lock named: " + lockName, getTablePrefix())); if (getLog().isDebugEnabled()) { getLog().debug( "Lock '" + lockName + "' was not obtained by: " + Thread.currentThread().getName());
setLockHandler(new StdRowLockSemaphore(getTablePrefix(), getInstanceName(), getSelectWithLockSQL())); } else { getLog().info(
ps.setString(1, lockName); if (getLog().isDebugEnabled()) { getLog().debug( "Lock '" + lockName + "' is being obtained: " + Thread.currentThread().getName()); getLog().debug( "Inserting new lock row for lock: '" + lockName + "' being obtained by thread: " + Thread.currentThread().getName()); " for lock named: " + lockName, getTablePrefix(), getSchedulerNameLiteral())); initCause = sqle; if (getLog().isDebugEnabled()) { getLog().debug( "Lock '" + lockName + "' was not obtained by: " + Thread.currentThread().getName() + (count < 3 ? " - will try again." : ""));
public void setSelectWithLockSQL(String selectWithLockSQL) { setSQL(selectWithLockSQL); } }
protected String getSelectWithLockSQL() { return getSQL(); }
"Using db table-based data access locking (synchronization)."); setLockHandler( new StdRowLockSemaphore(getTablePrefix(), getSelectWithLockSQL())); } else { getLog().info(
public void setSelectWithLockSQL(String selectWithLockSQL) { setSQL(selectWithLockSQL); } }
protected String getSelectWithLockSQL() { return getSQL(); }
"Using db table-based data access locking (synchronization)."); setLockHandler( new StdRowLockSemaphore(getTablePrefix(), getSelectWithLockSQL())); } else { getLog().info(
public void setSelectWithLockSQL(String selectWithLockSQL) { setSQL(selectWithLockSQL); } }
protected String getSelectWithLockSQL() { return getSQL(); }