final class WriteConcern extends AnyRef
The write concern.
import scala.concurrent.ExecutionContext import reactivemongo.api.{ DB, WriteConcern } import reactivemongo.api.bson.BSONDocument def foo(db: DB)(implicit ec: ExecutionContext) = db.collection("myColl"). insert(ordered = false, WriteConcern.Acknowledged). one(BSONDocument("foo" -> "bar"))
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- WriteConcern
- AnyRef
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from WriteConcern to any2stringadd[WriteConcern] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (WriteConcern, B)
- Implicit
- This member is added by an implicit conversion from WriteConcern to ArrowAssoc[WriteConcern] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
copy(w: W = _w, j: Boolean = _j, fsync: Boolean = _fsync, wtimeout: Option[Int] = _wtimeout): WriteConcern
- Annotations
- @SuppressWarnings()
-
def
ensuring(cond: (WriteConcern) ⇒ Boolean, msg: ⇒ Any): WriteConcern
- Implicit
- This member is added by an implicit conversion from WriteConcern to Ensuring[WriteConcern] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (WriteConcern) ⇒ Boolean): WriteConcern
- Implicit
- This member is added by an implicit conversion from WriteConcern to Ensuring[WriteConcern] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): WriteConcern
- Implicit
- This member is added by an implicit conversion from WriteConcern to Ensuring[WriteConcern] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): WriteConcern
- Implicit
- This member is added by an implicit conversion from WriteConcern to Ensuring[WriteConcern] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(that: Any): Boolean
- Definition Classes
- WriteConcern → AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
fsync: Boolean
- Annotations
- @inline()
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- WriteConcern → AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
j: Boolean
The journal flag
The journal flag
- Annotations
- @inline()
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- WriteConcern → AnyRef → Any
-
def
w: W
- Annotations
- @inline()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
wtimeout: Option[Int]
The time limit, in milliseconds (only applicable for
w
values greater than 1)The time limit, in milliseconds (only applicable for
w
values greater than 1)- Annotations
- @inline()
-
def
→[B](y: B): (WriteConcern, B)
- Implicit
- This member is added by an implicit conversion from WriteConcern to ArrowAssoc[WriteConcern] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
Deprecated Value Members
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from WriteConcern to StringFormat[WriteConcern] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.12.16) Use
formatString.format(value)
instead ofvalue.formatted(formatString)
, or use thef""
string interpolator. In Java 15 and later,formatted
resolves to the new method in String which has reversed parameters.