Tabnine Logo
DBSemaphore.getThreadLocks
Code IndexAdd Tabnine to your IDE (free)

How to use
getThreadLocks
method
in
org.quartz.impl.jdbcjobstore.DBSemaphore

Best Java code snippets using org.quartz.impl.jdbcjobstore.DBSemaphore.getThreadLocks (Showing top 12 results out of 315)

origin: quartz-scheduler/quartz

/**
 * Determine whether the calling thread owns a lock on the identified
 * resource.
 */
public boolean isLockOwner(String lockName) {
  return getThreadLocks().contains(lockName);
}
origin: quartz-scheduler/quartz

/**
 * Determine whether the calling thread owns a lock on the identified
 * resource.
 */
public boolean isLockOwner(String lockName) {
  return getThreadLocks().contains(lockName);
}
origin: quartz-scheduler/quartz

        + Thread.currentThread().getName());
getThreadLocks().add(lockName);
origin: quartz-scheduler/quartz

        + Thread.currentThread().getName());
getThreadLocks().add(lockName);
origin: quartz-scheduler/quartz

/**
 * Release the lock on the identified resource if it is held by the calling
 * thread.
 */
public void releaseLock(String lockName) {
  if (isLockOwner(lockName)) {
    if(getLog().isDebugEnabled()) {
      getLog().debug(
        "Lock '" + lockName + "' returned by: "
            + Thread.currentThread().getName());
    }
    getThreadLocks().remove(lockName);
    //getThreadLocksObtainer().remove(lockName);
  } else if (getLog().isDebugEnabled()) {
    getLog().warn(
      "Lock '" + lockName + "' attempt to return by: "
          + Thread.currentThread().getName()
          + " -- but not owner!",
      new Exception("stack-trace of wrongful returner"));
  }
}
origin: quartz-scheduler/quartz

/**
 * Release the lock on the identified resource if it is held by the calling
 * thread.
 */
public void releaseLock(String lockName) {
  if (isLockOwner(lockName)) {
    if(getLog().isDebugEnabled()) {
      getLog().debug(
        "Lock '" + lockName + "' returned by: "
            + Thread.currentThread().getName());
    }
    getThreadLocks().remove(lockName);
    //getThreadLocksObtainer().remove(lockName);
  } else if (getLog().isDebugEnabled()) {
    getLog().warn(
      "Lock '" + lockName + "' attempt to return by: "
          + Thread.currentThread().getName()
          + " -- but not owner!",
      new Exception("stack-trace of wrongful returner"));
  }
}
origin: com.opensymphony.quartz/com.springsource.org.quartz

/**
 * Determine whether the calling thread owns a lock on the identified
 * resource.
 */
public boolean isLockOwner(Connection conn, String lockName) {
  lockName = lockName.intern();
  return getThreadLocks().contains(lockName);
}
origin: quartz/quartz-all

/**
 * Determine whether the calling thread owns a lock on the identified
 * resource.
 */
public boolean isLockOwner(Connection conn, String lockName) {
  lockName = lockName.intern();
  return getThreadLocks().contains(lockName);
}
origin: com.opensymphony.quartz/com.springsource.org.quartz

/**
 * Release the lock on the identified resource if it is held by the calling
 * thread.
 */
public void releaseLock(Connection conn, String lockName) {
  lockName = lockName.intern();
  if (isLockOwner(conn, lockName)) {
    if(getLog().isDebugEnabled()) {
      getLog().debug(
        "Lock '" + lockName + "' returned by: "
            + Thread.currentThread().getName());
    }
    getThreadLocks().remove(lockName);
    //getThreadLocksObtainer().remove(lockName);
  } else if (getLog().isDebugEnabled()) {
    getLog().warn(
      "Lock '" + lockName + "' attempt to return by: "
          + Thread.currentThread().getName()
          + " -- but not owner!",
      new Exception("stack-trace of wrongful returner"));
  }
}
origin: com.opensymphony.quartz/com.springsource.org.quartz

        + Thread.currentThread().getName());
getThreadLocks().add(lockName);
origin: quartz/quartz-all

        + Thread.currentThread().getName());
getThreadLocks().add(lockName);
origin: quartz/quartz-all

/**
 * Release the lock on the identified resource if it is held by the calling
 * thread.
 */
public void releaseLock(Connection conn, String lockName) {
  lockName = lockName.intern();
  if (isLockOwner(conn, lockName)) {
    if(getLog().isDebugEnabled()) {
      getLog().debug(
        "Lock '" + lockName + "' returned by: "
            + Thread.currentThread().getName());
    }
    getThreadLocks().remove(lockName);
    //getThreadLocksObtainer().remove(lockName);
  } else if (getLog().isDebugEnabled()) {
    getLog().warn(
      "Lock '" + lockName + "' attempt to return by: "
          + Thread.currentThread().getName()
          + " -- but not owner!",
      new Exception("stack-trace of wrongful returner"));
  }
}
org.quartz.impl.jdbcjobstoreDBSemaphoregetThreadLocks

Popular methods of DBSemaphore

  • executeSQL
    Execute the SQL that will lock the proper database row.
  • getLog
  • getTablePrefix
  • isLockOwner
    Determine whether the calling thread owns a lock on the identified resource.
  • setExpandedSQL
  • setSQL
  • getSchedName
  • getSchedulerNameLiteral
  • setInsertSQL

Popular in Java

  • Making http post requests using okhttp
  • setContentView (Activity)
  • getResourceAsStream (ClassLoader)
  • putExtra (Intent)
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • JList (javax.swing)
  • JTextField (javax.swing)
  • Github Copilot alternatives
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