API Reference 0.4.0memcached_clientObserveResult

ObserveResult class

Represent a result after execute observe command

class ObserveResult {
 /**
  * document id
  */
 final String key;

 /**
  * Status of the observation.
  */
 final ObserveStatus status;

 /**
  * Current version of the document.
  */
 final int cas;

 /**
  * Average persist time used in milliseconds.
  */
 final int avgPersistTime;

 /**
  * Average replica time used in milliseconds.
  */
 final int avgReplicateTime;

 /**
  * Whether this is the primary server of the document. false means that this
  * is the result from a replica server.
  */
 bool isPrimary = false;

 ObserveResult(this.key, this.status, this.cas, this.avgPersistTime, this.avgReplicateTime);

 String toString() =>
     'isPrimary:$isPrimary, key:$key, status:$status, cas:$cas, '
     'avgPersistTime:$avgPersistTime, avgReplicateTime:$avgReplicateTime';
}

Constructors

new ObserveResult(String key, ObserveStatus status, int cas, int avgPersistTime, int avgReplicateTime) #

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
ObserveResult(this.key, this.status, this.cas, this.avgPersistTime, this.avgReplicateTime);

Properties

final int avgPersistTime #

Average persist time used in milliseconds.

final int avgPersistTime

final int avgReplicateTime #

Average replica time used in milliseconds.

final int avgReplicateTime

final int cas #

Current version of the document.

final int cas

bool isPrimary #

Whether this is the primary server of the document. false means that this is the result from a replica server.

bool isPrimary = false

final String key #

document id

final String key

final ObserveStatus status #

Status of the observation.

final ObserveStatus status

Methods

String toString() #

Returns a string representation of this object.

docs inherited from Object
String toString() =>
   'isPrimary:$isPrimary, key:$key, status:$status, cas:$cas, '
   'avgPersistTime:$avgPersistTime, avgReplicateTime:$avgReplicateTime';