API Reference 0.4.0couchclientPersistTo

PersistTo class

PersistTo codes for a Observe operation.

class PersistTo extends Enum {

 /**
  * Don't wait for persistence on any nodes.
  */
 static const PersistTo ZERO = const PersistTo(0);
 /**
  * Persist to the Master. ONE implies MASTER.
  */
 static const PersistTo MASTER = const PersistTo(1);
 /**
  * ONE implies MASTER.
  */
 static const PersistTo ONE = const PersistTo(1);
 /**
  * Persist to at least two nodes including Master.
  */
 static const PersistTo TWO = const PersistTo(2);
 /**
  * Persist to at least three nodes including Master.
  */
 static const PersistTo THREE = const PersistTo(3);
 /**
  * Persist to at least four nodes including Master.
  */
 static const PersistTo FOUR = const PersistTo(4);

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

 int get value
 => ordinal;
}

Extends

Enum > PersistTo

Static Properties

const PersistTo FOUR #

Persist to at least four nodes including Master.

static const PersistTo FOUR = const PersistTo(4)

const PersistTo MASTER #

Persist to the Master. ONE implies MASTER.

static const PersistTo MASTER = const PersistTo(1)

const PersistTo ONE #

ONE implies MASTER.

static const PersistTo ONE = const PersistTo(1)

const PersistTo THREE #

Persist to at least three nodes including Master.

static const PersistTo THREE = const PersistTo(3)

const PersistTo TWO #

Persist to at least two nodes including Master.

static const PersistTo TWO = const PersistTo(2)

const PersistTo ZERO #

Don't wait for persistence on any nodes.

static const PersistTo ZERO = const PersistTo(0)

Constructors

const PersistTo(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 PersistTo(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";