Tabnine Logo
Semaphore
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: quartz-scheduler/quartz

if (getLockHandler().requiresConnection()) {
  conn = getConnection();
transOwner = getLockHandler().obtainLock(conn, lockName);
origin: quartz-scheduler/quartz

protected void releaseLock(String lockName, boolean doIt) {
  if (doIt) {
    try {
      getLockHandler().releaseLock(lockName);
    } catch (LockException le) {
      getLog().error("Error returning lock: " + le.getMessage(), le);
    }
  }
}
origin: quartz-scheduler/quartz

getLockHandler().obtainLock(conn, LOCK_STATE_ACCESS);
transStateOwner = true;
  getLockHandler().obtainLock(conn, LOCK_TRIGGER_ACCESS);
origin: quartz-scheduler/quartz

getLockHandler().obtainLock(conn, LOCK_STATE_ACCESS);
transStateOwner = true;
  getLockHandler().obtainLock(conn, LOCK_TRIGGER_ACCESS);
origin: quartz-scheduler/quartz

if (getLockHandler().requiresConnection()) {
  conn = getConnection();
transOwner = getLockHandler().obtainLock(conn, lockName);
origin: quartz-scheduler/quartz

    "Found 0 triggers that missed their scheduled fire-time.");
} else {
  transOwner = getLockHandler().obtainLock(conn, LOCK_TRIGGER_ACCESS);
origin: quartz-scheduler/quartz

protected void releaseLock(String lockName, boolean doIt) {
  if (doIt) {
    try {
      getLockHandler().releaseLock(lockName);
    } catch (LockException le) {
      getLog().error("Error returning lock: " + le.getMessage(), le);
    }
  }
}
origin: quartz-scheduler/quartz

if (getLockHandler().requiresConnection()) {
  conn = getNonManagedTXConnection();
transOwner = getLockHandler().obtainLock(conn, lockName);
origin: quartz-scheduler/quartz

    "Found 0 triggers that missed their scheduled fire-time.");
} else {
  transOwner = getLockHandler().obtainLock(conn, LOCK_TRIGGER_ACCESS);
origin: com.opensymphony.quartz/com.springsource.org.quartz

protected void releaseLock(Connection conn, String lockName, boolean doIt) {
  if (doIt && conn != null) {
    try {
      getLockHandler().releaseLock(conn, lockName);
    } catch (LockException le) {
      getLog().error("Error returning lock: " + le.getMessage(), le);
    }
  }
}
 
origin: quartz-scheduler/quartz

if (getLockHandler().requiresConnection()) {
  conn = getNonManagedTXConnection();
transOwner = getLockHandler().obtainLock(conn, lockName);
origin: quartz/quartz-all

getLockHandler().obtainLock(conn, LOCK_STATE_ACCESS);
transStateOwner = true;
  getLockHandler().obtainLock(conn, LOCK_TRIGGER_ACCESS);
origin: quartz/quartz-all

protected void releaseLock(Connection conn, String lockName, boolean doIt) {
  if (doIt && conn != null) {
    try {
      getLockHandler().releaseLock(conn, lockName);
    } catch (LockException le) {
      getLog().error("Error returning lock: " + le.getMessage(), le);
    }
  }
}

origin: com.opensymphony.quartz/com.springsource.org.quartz

if (getLockHandler().requiresConnection()) {
  conn = getConnection();
transOwner = getLockHandler().obtainLock(conn, lockName);
origin: com.opensymphony.quartz/com.springsource.org.quartz

getLockHandler().obtainLock(conn, LOCK_STATE_ACCESS);
transStateOwner = true;
  getLockHandler().obtainLock(conn, LOCK_TRIGGER_ACCESS);
origin: quartz/quartz-all

if (getLockHandler().requiresConnection()) {
  conn = getConnection();
transOwner = getLockHandler().obtainLock(conn, lockName);
origin: com.opensymphony.quartz/com.springsource.org.quartz

    "Found 0 triggers that missed their scheduled fire-time.");
} else {
  transOwner = getLockHandler().obtainLock(conn, LOCK_TRIGGER_ACCESS);
origin: com.opensymphony.quartz/com.springsource.org.quartz

if (getLockHandler().requiresConnection()) {
  conn = getNonManagedTXConnection();
transOwner = getLockHandler().obtainLock(conn, lockName);
origin: quartz/quartz-all

    "Found 0 triggers that missed their scheduled fire-time.");
} else {
  transOwner = getLockHandler().obtainLock(conn, LOCK_TRIGGER_ACCESS);
origin: quartz/quartz-all

if (getLockHandler().requiresConnection()) {
  conn = getNonManagedTXConnection();
transOwner = getLockHandler().obtainLock(conn, lockName);
org.quartz.impl.jdbcjobstoreSemaphore

Javadoc

An interface for providing thread/resource locking in order to protect resources from being altered by multiple threads at the same time.

Most used methods

  • obtainLock
    Grants a lock on the identified resource to the calling thread (blocking until it is available).
  • releaseLock
    Release the lock on the identified resource if it is held by the calling thread.
  • requiresConnection
    Whether this Semaphore implementation requires a database connection for its lock management operati

Popular in Java

  • Reading from database using SQL prepared statement
  • notifyDataSetChanged (ArrayAdapter)
  • setRequestProperty (URLConnection)
  • getResourceAsStream (ClassLoader)
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Permission (java.security)
    Legacy security code; do not use.
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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