C# Class Enyim.Membase.BucketConfigListener

Mostra file Open project: xianrendzw/LightFramework.Net Class Usage Examples

Public Methods

Method Description
BucketConfigListener ( Uri poolUrls, string bucketName, string bucketPassword ) : System
Start ( ) : void

Starts listening for configuration data. This method blocks until the initial configuration is received. (Or until all sockIOPool urls fail.)

Stop ( ) : void

Private Methods

Method Description
GetPooledListener ( ) : MessageStreamListener

Returns a MessageStreamListener instance based on this instance's configuratino (timeout, bucket name etc.) When multiple listeners are requested with the exact same parameters (usually when multiple clients are instantiated from the same configuration), the same listener will be returned each time.

HandleMessage ( string message ) : void
RaiseConfigChanged ( ClusterConfig config ) : void
ReleaseListener ( MessageStreamListener listener ) : void

Unsubscibes from a pooled listener, and destrpys it if no additionals subscribers are present.

ResolveBucketUri ( WebClientWithTimeout client, Uri root, string bucketName ) : Uri

Method Details

BucketConfigListener() public method

public BucketConfigListener ( Uri poolUrls, string bucketName, string bucketPassword ) : System
poolUrls System.Uri
bucketName string
bucketPassword string
return System

Start() public method

Starts listening for configuration data. This method blocks until the initial configuration is received. (Or until all sockIOPool urls fail.)
public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void