C# 클래스 Cinchcast.Roque.Redis.RedisQueue

Redis-based implementation of a Queue
상속: Cinchcast.Roque.Core.Queue, IQueueWithInProgressData
파일 보기 프로젝트 열기: BlogTalkRadio/Roque

공개 프로퍼티들

프로퍼티 타입 설명
DefaultSubscribersCacheExpiration TimeSpan
RedisNamespace string

보호된 프로퍼티들

프로퍼티 타입 설명
_SubscribedToSubscribersChangesChannel RedisSubscriberConnection
_SubscribersCache string[]>.IDictionary
_SubscribersCacheLastClear DateTime

공개 메소드들

메소드 설명
ClearSubscribersCache ( ) : void
GetInProgressJson ( Worker worker ) : string
GetSubscribers ( ) : string[]>.IDictionary
GetSubscribersForEvent ( string target, string eventName ) : string[]
JobCompleted ( Worker worker, Job job, bool failed ) : void
RedisQueue ( string name, string>.IDictionary setings ) : System

보호된 메소드들

메소드 설명
DequeueJson ( Worker worker, int timeoutSeconds ) : string
DoGetTimeOfLastJobCompleted ( ) : DateTime?
DoReportEventSubscription ( string sourceQueue, string target, string eventName ) : void
EnqueueJson ( string data ) : void
EnqueueJsonEvent ( string data, string target, string eventName ) : void
GetRedisKey ( string suffixFormat = null ) : string
GetRedisKeyForQueue ( string queueName, string suffixFormat = null ) : string
GetWorkerKey ( Worker worker ) : string
PeekJson ( long &length ) : string

메소드 상세

ClearSubscribersCache() 공개 메소드

public ClearSubscribersCache ( ) : void
리턴 void

DequeueJson() 보호된 메소드

protected DequeueJson ( Worker worker, int timeoutSeconds ) : string
worker Worker
timeoutSeconds int
리턴 string

DoGetTimeOfLastJobCompleted() 보호된 메소드

protected DoGetTimeOfLastJobCompleted ( ) : DateTime?
리턴 DateTime?

DoReportEventSubscription() 보호된 메소드

protected DoReportEventSubscription ( string sourceQueue, string target, string eventName ) : void
sourceQueue string
target string
eventName string
리턴 void

EnqueueJson() 보호된 메소드

protected EnqueueJson ( string data ) : void
data string
리턴 void

EnqueueJsonEvent() 보호된 메소드

protected EnqueueJsonEvent ( string data, string target, string eventName ) : void
data string
target string
eventName string
리턴 void

GetInProgressJson() 공개 메소드

public GetInProgressJson ( Worker worker ) : string
worker Worker
리턴 string

GetRedisKey() 보호된 메소드

protected GetRedisKey ( string suffixFormat = null ) : string
suffixFormat string
리턴 string

GetRedisKeyForQueue() 보호된 메소드

protected GetRedisKeyForQueue ( string queueName, string suffixFormat = null ) : string
queueName string
suffixFormat string
리턴 string

GetSubscribers() 공개 메소드

public GetSubscribers ( ) : string[]>.IDictionary
리턴 string[]>.IDictionary

GetSubscribersForEvent() 공개 메소드

public GetSubscribersForEvent ( string target, string eventName ) : string[]
target string
eventName string
리턴 string[]

GetWorkerKey() 보호된 메소드

protected GetWorkerKey ( Worker worker ) : string
worker Worker
리턴 string

JobCompleted() 공개 메소드

public JobCompleted ( Worker worker, Job job, bool failed ) : void
worker Worker
job Job
failed bool
리턴 void

PeekJson() 보호된 메소드

protected PeekJson ( long &length ) : string
length long
리턴 string

RedisQueue() 공개 메소드

public RedisQueue ( string name, string>.IDictionary setings ) : System
name string
setings string>.IDictionary
리턴 System

프로퍼티 상세

DefaultSubscribersCacheExpiration 공개적으로 정적으로 프로퍼티

public static TimeSpan DefaultSubscribersCacheExpiration
리턴 TimeSpan

RedisNamespace 공개적으로 정적으로 프로퍼티

prefix for queues names in Redis
public static string RedisNamespace
리턴 string

_SubscribedToSubscribersChangesChannel 보호되어 있는 프로퍼티

protected RedisSubscriberConnection _SubscribedToSubscribersChangesChannel
리턴 RedisSubscriberConnection

_SubscribersCache 보호되어 있는 프로퍼티

protected IDictionary _SubscribersCache
리턴 string[]>.IDictionary

_SubscribersCacheLastClear 보호되어 있는 프로퍼티

protected DateTime _SubscribersCacheLastClear
리턴 DateTime