public enum

WriteConcern

extends Enum<E extends Enum<E>>
java.lang.Object
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ org.mule.module.mongo.api.WriteConcern

Class Overview

An enum wrapper of com.mongodb.WriteConcern

Summary

Enum Values
WriteConcern  DATABASE_DEFAULT  Database default write access  
WriteConcern  FSYNC_SAFE  Exceptions are raised for network issues, and server errors and the write operation waits for the server to flush the data to disk  
WriteConcern  NONE  No exceptions are raised, even for network issues  
WriteConcern  NORMAL  Exceptions are raised for network issues, but not server errors  
WriteConcern  REPLICAS_SAFE  Exceptions are raised for network issues, and server errors, waits for at least 2 servers for the write operation  
WriteConcern  SAFE  Exceptions are raised for network issues, and server errors, waits on a server for the write operation  
Fields
private final WriteConcern mongoWriteConcern
[Expand]
Inherited Fields
From class java.lang.Enum
Public Methods
WriteConcern toMongoWriteConcern(DB db)
static WriteConcern valueOf(String name)
final static WriteConcern[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final WriteConcern DATABASE_DEFAULT

Database default write access

public static final WriteConcern FSYNC_SAFE

Exceptions are raised for network issues, and server errors and the write operation waits for the server to flush the data to disk

public static final WriteConcern NONE

No exceptions are raised, even for network issues

public static final WriteConcern NORMAL

Exceptions are raised for network issues, but not server errors

public static final WriteConcern REPLICAS_SAFE

Exceptions are raised for network issues, and server errors, waits for at least 2 servers for the write operation

public static final WriteConcern SAFE

Exceptions are raised for network issues, and server errors, waits on a server for the write operation

Fields

private final WriteConcern mongoWriteConcern

Public Methods

public WriteConcern toMongoWriteConcern (DB db)

Parameters
db

public static WriteConcern valueOf (String name)

Parameters
name

public static final WriteConcern[] values ()