public static class WriteConcern.Majority extends WriteConcern
WriteConcern.MajorityACKNOWLEDGED, FSYNC_SAFE, FSYNCED, JOURNAL_SAFE, JOURNALED, MAJORITY, NORMAL, REPLICA_ACKNOWLEDGED, REPLICAS_SAFE, SAFE, UNACKNOWLEDGED| Constructor and Description |
|---|
Majority()
Create a new Majority WriteConcern.
|
Majority(int wtimeout,
boolean fsync,
boolean j)
Create a new WriteConcern with the given configuration.
|
asDocument, callGetLastError, equals, fsync, getFsync, getJ, getW, getWObject, getWString, getWtimeout, hashCode, isAcknowledged, isServerDefault, majorityWriteConcern, toString, valueOf, withFsync, withJ, withW, withWpublic Majority()
public Majority(int wtimeout,
boolean fsync,
boolean j)
wtimeout - timeout for write operationfsync - whether or not to fsyncj - whether writes should wait for a journaling group commit