Package com.mongodb
Class WriteConcern.Majority
- java.lang.Object
-
- com.mongodb.WriteConcern
-
- com.mongodb.WriteConcern.Majority
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- WriteConcern
@Deprecated public static class WriteConcern.Majority extends WriteConcern
Deprecated.A write concern that blocks acknowledgement of a write operation until a majority of replica set members have applied it.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.mongodb.WriteConcern
WriteConcern.Majority
-
-
Field Summary
-
Fields inherited from class com.mongodb.WriteConcern
ACKNOWLEDGED, FSYNC_SAFE, FSYNCED, JOURNAL_SAFE, JOURNALED, MAJORITY, NORMAL, REPLICA_ACKNOWLEDGED, REPLICAS_SAFE, SAFE, UNACKNOWLEDGED, W1, W2, W3
-
-
Method Summary
-
Methods inherited from class com.mongodb.WriteConcern
asDocument, callGetLastError, equals, fsync, getFsync, getJ, getJournal, getW, getWObject, getWString, getWtimeout, getWTimeout, hashCode, isAcknowledged, isServerDefault, majorityWriteConcern, toString, valueOf, withFsync, withJ, withJournal, withW, withW, withWTimeout
-
-
-
-
Constructor Detail
-
Majority
public Majority()
Deprecated.Create a new Majority WriteConcern.
-
Majority
public Majority(int wtimeout, boolean fsync, boolean j)
Deprecated.Create a new WriteConcern with the given configuration.- Parameters:
wtimeout
- timeout for write operationfsync
- whether or not to fsyncj
- whether writes should wait for a journaling group commit
-
-