C# Class Hangfire.SQLite.SQLiteWriteOnlyTransaction

Inheritance: Hangfire.Storage.JobStorageTransaction
显示文件 Open project: vip32/Hangfire.SQLite

Public Methods

Method Description
AddJobState ( string jobId, IState state ) : void
AddRangeToSet ( string key, IList items ) : void
AddToQueue ( string queue, string jobId ) : void
AddToSet ( string key, string value ) : void
AddToSet ( string key, string value, double score ) : void
Commit ( ) : void
DecrementCounter ( string key ) : void
DecrementCounter ( string key, System.TimeSpan expireIn ) : void
ExpireHash ( string key, System.TimeSpan expireIn ) : void
ExpireJob ( string jobId, System.TimeSpan expireIn ) : void
ExpireList ( string key, System.TimeSpan expireIn ) : void
ExpireSet ( string key, System.TimeSpan expireIn ) : void
IncrementCounter ( string key ) : void
IncrementCounter ( string key, System.TimeSpan expireIn ) : void
InsertToList ( string key, string value ) : void
PersistHash ( string key ) : void
PersistJob ( string jobId ) : void
PersistList ( string key ) : void
PersistSet ( string key ) : void
RemoveFromList ( string key, string value ) : void
RemoveFromSet ( string key, string value ) : void
RemoveHash ( string key ) : void
RemoveSet ( string key ) : void
SQLiteWriteOnlyTransaction ( IDbConnection connection, System.Transactions.IsolationLevel isolationLevel, PersistentJobQueueProviderCollection queueProviders ) : System
SetJobState ( string jobId, IState state ) : void
SetRangeInHash ( string key, string>.IEnumerable keyValuePairs ) : void
TrimList ( string key, int keepStartingFrom, int keepEndingAt ) : void

Private Methods

Method Description
AcquireHashLock ( ) : void
AcquireListLock ( ) : void
AcquireLock ( string resource ) : void
AcquireSetLock ( ) : void
CreateTransaction ( System.Transactions.IsolationLevel isolationLevel ) : TransactionScope
QueueCommand ( Action action ) : void

Method Details

AddJobState() public method

public AddJobState ( string jobId, IState state ) : void
jobId string
state IState
return void

AddRangeToSet() public method

public AddRangeToSet ( string key, IList items ) : void
key string
items IList
return void

AddToQueue() public method

public AddToQueue ( string queue, string jobId ) : void
queue string
jobId string
return void

AddToSet() public method

public AddToSet ( string key, string value ) : void
key string
value string
return void

AddToSet() public method

public AddToSet ( string key, string value, double score ) : void
key string
value string
score double
return void

Commit() public method

public Commit ( ) : void
return void

DecrementCounter() public method

public DecrementCounter ( string key ) : void
key string
return void

DecrementCounter() public method

public DecrementCounter ( string key, System.TimeSpan expireIn ) : void
key string
expireIn System.TimeSpan
return void

ExpireHash() public method

public ExpireHash ( string key, System.TimeSpan expireIn ) : void
key string
expireIn System.TimeSpan
return void

ExpireJob() public method

public ExpireJob ( string jobId, System.TimeSpan expireIn ) : void
jobId string
expireIn System.TimeSpan
return void

ExpireList() public method

public ExpireList ( string key, System.TimeSpan expireIn ) : void
key string
expireIn System.TimeSpan
return void

ExpireSet() public method

public ExpireSet ( string key, System.TimeSpan expireIn ) : void
key string
expireIn System.TimeSpan
return void

IncrementCounter() public method

public IncrementCounter ( string key ) : void
key string
return void

IncrementCounter() public method

public IncrementCounter ( string key, System.TimeSpan expireIn ) : void
key string
expireIn System.TimeSpan
return void

InsertToList() public method

public InsertToList ( string key, string value ) : void
key string
value string
return void

PersistHash() public method

public PersistHash ( string key ) : void
key string
return void

PersistJob() public method

public PersistJob ( string jobId ) : void
jobId string
return void

PersistList() public method

public PersistList ( string key ) : void
key string
return void

PersistSet() public method

public PersistSet ( string key ) : void
key string
return void

RemoveFromList() public method

public RemoveFromList ( string key, string value ) : void
key string
value string
return void

RemoveFromSet() public method

public RemoveFromSet ( string key, string value ) : void
key string
value string
return void

RemoveHash() public method

public RemoveHash ( string key ) : void
key string
return void

RemoveSet() public method

public RemoveSet ( string key ) : void
key string
return void

SQLiteWriteOnlyTransaction() public method

public SQLiteWriteOnlyTransaction ( IDbConnection connection, System.Transactions.IsolationLevel isolationLevel, PersistentJobQueueProviderCollection queueProviders ) : System
connection IDbConnection
isolationLevel System.Transactions.IsolationLevel
queueProviders PersistentJobQueueProviderCollection
return System

SetJobState() public method

public SetJobState ( string jobId, IState state ) : void
jobId string
state IState
return void

SetRangeInHash() public method

public SetRangeInHash ( string key, string>.IEnumerable keyValuePairs ) : void
key string
keyValuePairs string>.IEnumerable
return void

TrimList() public method

public TrimList ( string key, int keepStartingFrom, int keepEndingAt ) : void
key string
keepStartingFrom int
keepEndingAt int
return void