C# Class Couchbase.ObserveHandler

Show file Open project: e-travel/couchbase-net-client Class Usage Examples

Public Methods

Method Description
HandleMasterPersistence ( ICouchbaseServerPool pool ) : IObserveOperationResult

Handle the scenario when PersistTo == 1

HandleMasterPersistenceWithReplication ( ICouchbaseServerPool pool ) : IObserveOperationResult
ObserveHandler ( ObserveSettings settings ) : System

Private Methods

Method Description
checkNodesForKey ( ObservedNode nodes, IObserveOperation command, bool &isMasterInExpectedState, int &replicaFoundCount, int &replicaPersistedCount ) : IObserveOperationResult
isInExpectedState ( int replicaFoundCount, int replicaPersistedCount, bool masterPersisted ) : bool
performParallelObserve ( ICouchbaseServerPool pool ) : IObserveOperationResult
setupObserveOperation ( ICouchbaseServerPool pool ) : Tuple

Method Details

HandleMasterPersistence() public method

Handle the scenario when PersistTo == 1
public HandleMasterPersistence ( ICouchbaseServerPool pool ) : IObserveOperationResult
pool ICouchbaseServerPool
return IObserveOperationResult

HandleMasterPersistenceWithReplication() public method

public HandleMasterPersistenceWithReplication ( ICouchbaseServerPool pool ) : IObserveOperationResult
pool ICouchbaseServerPool
return IObserveOperationResult

ObserveHandler() public method

public ObserveHandler ( ObserveSettings settings ) : System
settings Couchbase.Settings.ObserveSettings
return System