API Reference 0.4.0couchclientReplicateTo

ReplicateTo class

ReplicateTo codes for a Observe operation.

class ReplicateTo extends Enum {
 /**
  * Replicate to at least zero nodes.
  */
 static const ReplicateTo ZERO = const ReplicateTo(0);
 /**
  * Replicate to at least one node.
  */
 static const ReplicateTo ONE = const ReplicateTo(1);
 /**
  * Replicate to at least two nodes.
  */
 static const ReplicateTo TWO = const ReplicateTo(2);
 /**
  * Replicate to at least three nodes.
  */
 static const ReplicateTo THREE = const ReplicateTo(3);

 const ReplicateTo(int val)
     : super(val);

 int get value
 => ordinal;
}

Extends

Enum > ReplicateTo

Static Properties

const ReplicateTo ONE #

Replicate to at least one node.

static const ReplicateTo ONE = const ReplicateTo(1)

const ReplicateTo THREE #

Replicate to at least three nodes.

static const ReplicateTo THREE = const ReplicateTo(3)

const ReplicateTo TWO #

Replicate to at least two nodes.

static const ReplicateTo TWO = const ReplicateTo(2)

const ReplicateTo ZERO #

Replicate to at least zero nodes.

static const ReplicateTo ZERO = const ReplicateTo(0)

Constructors

const ReplicateTo(int val) #

Creates a new Object instance.

Object instances have no meaningful state, and are only useful through their identity. An Object instance is equal to itself only.

docs inherited from Object
const ReplicateTo(int val)
   : super(val);

Properties

final int ordinal #

inherited from Enum
final int ordinal

final int value #

int get value
=> ordinal;

Methods

String toString() #

inherited from Enum

Returns a string representation of this object.

docs inherited from Object
String toString() => "$ordinal";