Annotationsschnittstelle WriteSafety


@Target(TYPE) @Retention(RUNTIME) public @interface WriteSafety
User: Stephan Bösebeck Date: 26.05.12 Time: 16:31

See WriteConcern in MongoDB Java-Driver... for additional information


WaitForSync: wait for the write to be synced to disk timeout: set a timeout in ms for the operation - if set to 0, unlimited (default). If set to negative value, wait relative to replication lag level: set the safety level:

  • IGNORE_ERRORS None, no checking is done
  • NORMAL None, network socket errors raised
  • BASIC Checks server for errors as well as network socket errors raised
  • WAIT_FOR_SLAVE Checks servers (at lease 2) for errors as well as network socket errors raised
  • Elementdetails

    • timeout

      int timeout
      Standard:
      0
    • level

      Standard:
      NORMAL
    • waitForJournalCommit

      boolean waitForJournalCommit
      Standard:
      false