UpdateLockRowSemaphore Class

Quartz.NET 3.0 API Documentation
Provide thread/resource locking in order to protect resources from being altered by multiple threads at the same time using a db row update.
Inheritance Hierarchy

SystemObject
  Quartz.Impl.AdoJobStoreAdoConstants
    Quartz.Impl.AdoJobStoreStdAdoConstants
      Quartz.Impl.AdoJobStoreDBSemaphore
        Quartz.Impl.AdoJobStoreUpdateLockRowSemaphore
          Quartz.Impl.AdoJobStoreUpdateLockRowSemaphoreMOT

Namespace:  Quartz.Impl.AdoJobStore
Assembly:  Quartz (in Quartz.dll) Version: 3.0.0
Syntax

C#
public class UpdateLockRowSemaphore : DBSemaphore

The UpdateLockRowSemaphore type exposes the following members.

Constructors

  NameDescription
Public methodUpdateLockRowSemaphore(IDbProvider)
Initializes a new instance of the UpdateLockRowSemaphore class.
Protected methodUpdateLockRowSemaphore(String, String, String, String, IDbProvider)
Initializes a new instance of the UpdateLockRowSemaphore class
Top
Properties

  NameDescription
Protected propertyAdoUtil (Inherited from DBSemaphore.)
Protected propertyInsertSQL (Inherited from DBSemaphore.)
Public propertyRequiresConnection
This Semaphore implementation does use the database.
(Inherited from DBSemaphore.)
Protected propertyRetryCount
Public propertySchedName (Inherited from DBSemaphore.)
Protected propertySchedulerNameLiteral (Inherited from DBSemaphore.)
Protected propertySQL (Inherited from DBSemaphore.)
Public propertyTablePrefix
Gets or sets the table prefix.
(Inherited from DBSemaphore.)
Top
Methods

  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodExecuteSQL
Execute the SQL that will lock the proper database row.
(Overrides DBSemaphoreExecuteSQL(Guid, ConnectionAndTransactionHolder, String, String, String, CancellationToken).)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodObtainLock
Grants a lock on the identified resource to the calling thread (blocking until it is available).
(Inherited from DBSemaphore.)
Public methodReleaseLock
Release the lock on the identified resource if it is held by the calling thread.
(Inherited from DBSemaphore.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields

  NameDescription
Public fieldStatic memberSqlInsertLock
Public fieldStatic memberSqlUpdateForLock
Top
Remarks

Note: This Semaphore implementation is useful for databases that do not support row locking via "SELECT FOR UPDATE" or SQL Server's type syntax.

As of Quartz.NET 2.0 version there is no need to use this implementation for SQL Server databases.

See Also

Reference