congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
StdRowLockSemaphore
Code IndexAdd Tabnine to your IDE (free)

How to use
StdRowLockSemaphore
in
org.quartz.impl.jdbcjobstore

Best Java code snippets using org.quartz.impl.jdbcjobstore.StdRowLockSemaphore (Showing top 16 results out of 315)

origin: quartz-scheduler/quartz

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." : ""));
origin: quartz-scheduler/quartz

protected String getSelectWithLockSQL() {
  return getSQL();
}
origin: quartz-scheduler/quartz

  public void setSelectWithLockSQL(String selectWithLockSQL) {
    setSQL(selectWithLockSQL);
  }
}
origin: com.opensymphony.quartz/com.springsource.org.quartz

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());
origin: quartz-scheduler/quartz

  setLockHandler(new StdRowLockSemaphore(getTablePrefix(), getInstanceName(), getSelectWithLockSQL()));
} else {
  getLog().info(
origin: quartz/quartz-all

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());
origin: quartz-scheduler/quartz

  setLockHandler(new StdRowLockSemaphore(getTablePrefix(), getInstanceName(), getSelectWithLockSQL()));
} else {
  getLog().info(
origin: quartz-scheduler/quartz

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." : ""));
origin: quartz-scheduler/quartz

  public void setSelectWithLockSQL(String selectWithLockSQL) {
    setSQL(selectWithLockSQL);
  }
}
origin: quartz-scheduler/quartz

protected String getSelectWithLockSQL() {
  return getSQL();
}
origin: com.opensymphony.quartz/com.springsource.org.quartz

    "Using db table-based data access locking (synchronization).");
  setLockHandler(
    new StdRowLockSemaphore(getTablePrefix(), getSelectWithLockSQL()));
} else {
  getLog().info(
origin: com.opensymphony.quartz/com.springsource.org.quartz

  public void setSelectWithLockSQL(String selectWithLockSQL) {
    setSQL(selectWithLockSQL);
  }
}
origin: com.opensymphony.quartz/com.springsource.org.quartz

protected String getSelectWithLockSQL() {
  return getSQL();
}
origin: quartz/quartz-all

    "Using db table-based data access locking (synchronization).");
  setLockHandler(
    new StdRowLockSemaphore(getTablePrefix(), getSelectWithLockSQL()));
} else {
  getLog().info(
origin: quartz/quartz-all

  public void setSelectWithLockSQL(String selectWithLockSQL) {
    setSQL(selectWithLockSQL);
  }
}
origin: quartz/quartz-all

protected String getSelectWithLockSQL() {
  return getSQL();
}
org.quartz.impl.jdbcjobstoreStdRowLockSemaphore

Javadoc

Internal database based lock handler for providing thread/resource locking in order to protect resources from being altered by multiple threads at the same time.

Most used methods

  • <init>
  • getLog
  • getSQL
  • getTablePrefix
  • setSQL
  • getSchedulerNameLiteral

Popular in Java

  • Reading from database using SQL prepared statement
  • getSharedPreferences (Context)
  • setScale (BigDecimal)
  • getResourceAsStream (ClassLoader)
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now