C# Class ServiceStack.Redis.RedisSentinelWorker

Inheritance: IDisposable
Afficher le fichier Open project: ServiceStack/ServiceStack.Redis Class Usage Examples

Méthodes publiques

Свойство Type Description
OnSentinelError Action

Protected Properties

Свойство Type Description
Log ILog

Méthodes publiques

Méthode Description
BeginListeningForConfigurationChanges ( ) : void
Dispose ( ) : void
ForceMasterFailover ( string masterName ) : void
RedisSentinelWorker ( RedisSentinel sentinel, RedisEndpoint sentinelEndpoint ) : System.Threading

Private Methods

Méthode Description
GetMasterHost ( string masterName ) : string
GetMasterHostInternal ( string masterName ) : string
GetSentinelHosts ( string masterName ) : List
GetSentinelInfo ( ) : SentinelInfo
GetSlaveHosts ( string masterName ) : List
SanitizeHostsConfig ( string>.IEnumerable slaves ) : List
SanitizeMasterConfig ( List masterInfo ) : string
SentinelMessageReceived ( string channel, string message ) : void

Event that is fired when the sentinel subscription raises an event

Method Details

BeginListeningForConfigurationChanges() public méthode

public BeginListeningForConfigurationChanges ( ) : void
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

ForceMasterFailover() public méthode

public ForceMasterFailover ( string masterName ) : void
masterName string
Résultat void

RedisSentinelWorker() public méthode

public RedisSentinelWorker ( RedisSentinel sentinel, RedisEndpoint sentinelEndpoint ) : System.Threading
sentinel RedisSentinel
sentinelEndpoint RedisEndpoint
Résultat System.Threading

Property Details

Log protected_oe static_oe property

protected static ILog Log
Résultat ILog

OnSentinelError public_oe property

public Action OnSentinelError
Résultat Action