Package de.caluga.morphium.driver
Class WriteConcern
java.lang.Object
de.caluga.morphium.driver.WriteConcern
define how secure the write should be. most important the w value which states the number of nodes written to:
0: no error handling
1: master only
>1: number of nodes
-1: all available replicase nodes
-2: majority
-
Method Summary
Modifier and TypeMethodDescriptionasMap()intgetW()static WriteConcerngetWc(int w, boolean j, int wtimeout) intcom.mongodb.WriteConcern
-
Method Details
-
getWc
-
toMongoWriteConcern
public com.mongodb.WriteConcern toMongoWriteConcern() -
getW
public int getW() -
getWtimeout
public int getWtimeout() -
asMap
-