Class 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 Detail

      • getWc

        public static WriteConcern getWc​(int w,
                                         boolean j,
                                         int wtimeout)
      • getW

        public int getW()
      • getWtimeout

        public int getWtimeout()