C# Class Hangfire.Storage.JobStorageConnection

Inheritance: IStorageConnection
Mostra file Open project: vip32/Hangfire.SQLite Class Usage Examples

Public Methods

Method Description
AcquireDistributedLock ( string resource, System.TimeSpan timeout ) : IDisposable
AnnounceServer ( string serverId, Hangfire.Server.ServerContext context ) : void
CreateExpiredJob ( Hangfire.Common.Job job, string>.IDictionary parameters, System.DateTime createdAt, System.TimeSpan expireIn ) : string
CreateWriteTransaction ( ) : IWriteOnlyTransaction
Dispose ( ) : void
FetchNextJob ( string queues, CancellationToken cancellationToken ) : IFetchedJob
GetAllEntriesFromHash ( string key ) : string>.Dictionary
GetAllItemsFromList ( [ key ) : List
GetAllItemsFromSet ( string key ) : HashSet
GetCounter ( [ key ) : long
GetFirstByLowestScoreFromSet ( string key, double fromScore, double toScore ) : string
GetHashCount ( [ key ) : long
GetHashTtl ( [ key ) : System.TimeSpan
GetJobData ( string jobId ) : Hangfire.Storage.JobData
GetJobParameter ( string jobId, string name ) : string
GetListCount ( [ key ) : long
GetListTtl ( [ key ) : System.TimeSpan
GetRangeFromList ( [ key, int startingFrom, int endingAt ) : List
GetRangeFromSet ( [ key, int startingFrom, int endingAt ) : List
GetSetCount ( [ key ) : long
GetSetTtl ( [ key ) : System.TimeSpan
GetStateData ( string jobId ) : Hangfire.Storage.StateData
GetValueFromHash ( [ key, [ name ) : string
Heartbeat ( string serverId ) : void
RemoveServer ( string serverId ) : void
RemoveTimedOutServers ( System.TimeSpan timeOut ) : int
SetJobParameter ( string jobId, string name, string value ) : void
SetRangeInHash ( string key, string>.IEnumerable keyValuePairs ) : void

Method Details

AcquireDistributedLock() public abstract method

public abstract AcquireDistributedLock ( string resource, System.TimeSpan timeout ) : IDisposable
resource string
timeout System.TimeSpan
return IDisposable

AnnounceServer() public abstract method

public abstract AnnounceServer ( string serverId, Hangfire.Server.ServerContext context ) : void
serverId string
context Hangfire.Server.ServerContext
return void

CreateExpiredJob() public abstract method

public abstract CreateExpiredJob ( Hangfire.Common.Job job, string>.IDictionary parameters, System.DateTime createdAt, System.TimeSpan expireIn ) : string
job Hangfire.Common.Job
parameters string>.IDictionary
createdAt System.DateTime
expireIn System.TimeSpan
return string

CreateWriteTransaction() public abstract method

public abstract CreateWriteTransaction ( ) : IWriteOnlyTransaction
return IWriteOnlyTransaction

Dispose() public method

public Dispose ( ) : void
return void

FetchNextJob() public abstract method

public abstract FetchNextJob ( string queues, CancellationToken cancellationToken ) : IFetchedJob
queues string
cancellationToken System.Threading.CancellationToken
return IFetchedJob

GetAllEntriesFromHash() public abstract method

public abstract GetAllEntriesFromHash ( string key ) : string>.Dictionary
key string
return string>.Dictionary

GetAllItemsFromList() public method

public GetAllItemsFromList ( [ key ) : List
key [
return List

GetAllItemsFromSet() public abstract method

public abstract GetAllItemsFromSet ( string key ) : HashSet
key string
return HashSet

GetCounter() public method

public GetCounter ( [ key ) : long
key [
return long

GetFirstByLowestScoreFromSet() public abstract method

public abstract GetFirstByLowestScoreFromSet ( string key, double fromScore, double toScore ) : string
key string
fromScore double
toScore double
return string

GetHashCount() public method

public GetHashCount ( [ key ) : long
key [
return long

GetHashTtl() public method

public GetHashTtl ( [ key ) : System.TimeSpan
key [
return System.TimeSpan

GetJobData() public abstract method

public abstract GetJobData ( string jobId ) : Hangfire.Storage.JobData
jobId string
return Hangfire.Storage.JobData

GetJobParameter() public abstract method

public abstract GetJobParameter ( string jobId, string name ) : string
jobId string
name string
return string

GetListCount() public method

public GetListCount ( [ key ) : long
key [
return long

GetListTtl() public method

public GetListTtl ( [ key ) : System.TimeSpan
key [
return System.TimeSpan

GetRangeFromList() public method

public GetRangeFromList ( [ key, int startingFrom, int endingAt ) : List
key [
startingFrom int
endingAt int
return List

GetRangeFromSet() public method

public GetRangeFromSet ( [ key, int startingFrom, int endingAt ) : List
key [
startingFrom int
endingAt int
return List

GetSetCount() public method

public GetSetCount ( [ key ) : long
key [
return long

GetSetTtl() public method

public GetSetTtl ( [ key ) : System.TimeSpan
key [
return System.TimeSpan

GetStateData() public abstract method

public abstract GetStateData ( string jobId ) : Hangfire.Storage.StateData
jobId string
return Hangfire.Storage.StateData

GetValueFromHash() public method

public GetValueFromHash ( [ key, [ name ) : string
key [
name [
return string

Heartbeat() public abstract method

public abstract Heartbeat ( string serverId ) : void
serverId string
return void

RemoveServer() public abstract method

public abstract RemoveServer ( string serverId ) : void
serverId string
return void

RemoveTimedOutServers() public abstract method

public abstract RemoveTimedOutServers ( System.TimeSpan timeOut ) : int
timeOut System.TimeSpan
return int

SetJobParameter() public abstract method

public abstract SetJobParameter ( string jobId, string name, string value ) : void
jobId string
name string
value string
return void

SetRangeInHash() public abstract method

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