C# Class Raven.Client.Document.ReplicationBehavior

Mostrar archivo Open project: robashton/ravendb Class Usage Examples

Public Methods

Method Description
ReplicationBehavior ( DocumentStore documentStore ) : System
WaitAsync ( Etag etag = null, TimeSpan timeout = null, string database = null, int replicas = 2 ) : Task

Represents an replication operation to all destination servers of an item specified by ETag

Private Methods

Method Description
GetReplicatedEtagsFor ( string destinationUrl ) : Task
WaitForReplicationFromServerAsync ( string url, AsyncCountdownEvent countDown, Etag etag, BlockingCollection errors ) : void

Method Details

ReplicationBehavior() public method

public ReplicationBehavior ( DocumentStore documentStore ) : System
documentStore DocumentStore
return System

WaitAsync() public method

Represents an replication operation to all destination servers of an item specified by ETag
public WaitAsync ( Etag etag = null, TimeSpan timeout = null, string database = null, int replicas = 2 ) : Task
etag Etag ETag of an replicated item
timeout TimeSpan Optional timeout
database string The database from which to check, if null, the default database for the document store connection string
replicas int The min number of replicas that must have the value before we can return (or the number of destinations, if higher)
return Task