Package de.caluga.morphium.driver
Class WriteConcern
- java.lang.Object
-
- de.caluga.morphium.driver.WriteConcern
-
public class WriteConcern extends Object
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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>asMap()intgetW()static WriteConcerngetWc(int w, boolean j, int wtimeout)intgetWtimeout()
-
-
-
Method Detail
-
getWc
public static WriteConcern getWc(int w, boolean j, int wtimeout)
-
getW
public int getW()
-
getWtimeout
public int getWtimeout()
-
-