class MongoDriver extends Driver
- Annotations
- @deprecated
- Deprecated
(Since version 0.19.4) Use
reactivemongo.api.AsyncDriver
- Alphabetic
- By Inheritance
- MongoDriver
- Driver
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
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 MongoDriver toany2stringadd[MongoDriver] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
- def ->[B](y: B): (MongoDriver, B)
- Implicit
- This member is added by an implicit conversion from MongoDriver toArrowAssoc[MongoDriver] 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
- final def askClose(timeout: FiniteDuration)(implicit ec: ExecutionContext): Future[Unit]
Closes this driver (and all its connections and resources).
Closes this driver (and all its connections and resources). Will wait until the timeout for proper closing of connections before forcing hard shutdown.
- Attributes
- protected
- Definition Classes
- Driver
- final def askConnection(nodes: Seq[String], options: MongoConnectionOptions, name: Option[String]): Future[MongoConnection]
Creates a new MongoConnection.
Creates a new MongoConnection.
- nodes
The list of node names (e.g. node1.foo.com:27017); Port is optional (27017 is used by default)
- options
the options for the new connection pool
- name
the name for the connection pool
- Attributes
- protected
- Definition Classes
- Driver
- val classLoader: Option[ClassLoader]
The classloader used to load the actor system
The classloader used to load the actor system
- Attributes
- protected
- Definition Classes
- MongoDriver → Driver
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def close(timeout: FiniteDuration = FiniteDuration(2, SECONDS)): Unit
Closes this driver (and all its connections and resources).
Closes this driver (and all its connections and resources). Awaits the termination until the timeout is expired.
- val config: Option[Config]
The custom configuration (otherwise the default options are used)
The custom configuration (otherwise the default options are used)
- Attributes
- protected
- Definition Classes
- MongoDriver → Driver
- def connection(parsedURI: ParsedURI, strictUri: Boolean): Try[MongoConnection]
Creates a new MongoConnection from URI.
Creates a new MongoConnection from URI.
- parsedURI
the URI parsed by reactivemongo.api.MongoConnection.parseURI
- strictUri
if true the parsed URI must be strict, without ignored/unsupported options
- def connection(parsedURI: ParsedURI, name: Option[String], strictUri: Boolean): Try[MongoConnection]
Creates a new MongoConnection from URI.
Creates a new MongoConnection from URI.
- parsedURI
The URI parsed by reactivemongo.api.MongoConnection.parseURI
- name
the name for the connection pool
- strictUri
if true the parsed URI must be strict, without ignored/unsupported options
- def connection(parsedURI: ParsedURI, name: Option[String]): MongoConnection
Creates a new MongoConnection from URI.
Creates a new MongoConnection from URI.
- parsedURI
the URI parsed by reactivemongo.api.MongoConnection.parseURI
- name
the name for the connection pool
- def connection(uri: String, name: Option[String], strictUri: Boolean): Try[MongoConnection]
Creates a new MongoConnection from URI.
Creates a new MongoConnection from URI.
- uri
the URI to be parsed by reactivemongo.api.MongoConnection.parseURI
- name
the name for the connection pool
- strictUri
if true the parsed URI must be strict, without ignored/unsupported options
- def connection(uriStrict: String): Try[MongoConnection]
Creates a new MongoConnection from URI.
Creates a new MongoConnection from URI.
- uriStrict
the strict URI, that will be parsed by reactivemongo.api.MongoConnection.parseURI
- def connection(nodes: Seq[String], options: MongoConnectionOptions, name: String): MongoConnection
Creates a new MongoConnection.
Creates a new MongoConnection.
- nodes
The list of node names (e.g. node1.foo.com:27017); Port is optional (27017 is used by default)
- options
the options for the new connection pool
- name
the name for the connection pool
- def connection(nodes: Seq[String], options: MongoConnectionOptions): MongoConnection
Creates a new MongoConnection.
Creates a new MongoConnection.
- nodes
The list of node names (e.g. node1.foo.com:27017); Port is optional (27017 is used by default)
- options
the options for the new connection pool
- def connection(nodes: Seq[String]): MongoConnection
Creates a new MongoConnection.
Creates a new MongoConnection.
- nodes
The list of node names (e.g. node1.foo.com:27017); Port is optional (27017 is used by default)
- final val connectionMonitors: Map[ActorRef, MongoConnection]
- Attributes
- protected
- Definition Classes
- Driver
- def ensuring(cond: (MongoDriver) => Boolean, msg: => Any): MongoDriver
- Implicit
- This member is added by an implicit conversion from MongoDriver toEnsuring[MongoDriver] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (MongoDriver) => Boolean): MongoDriver
- Implicit
- This member is added by an implicit conversion from MongoDriver toEnsuring[MongoDriver] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: => Any): MongoDriver
- Implicit
- This member is added by an implicit conversion from MongoDriver toEnsuring[MongoDriver] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): MongoDriver
- Implicit
- This member is added by an implicit conversion from MongoDriver toEnsuring[MongoDriver] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from MongoDriver toStringFormat[MongoDriver] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final val supervisorName: String
- Attributes
- protected
- Definition Classes
- Driver
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
Deprecated Value Members
- def connection(parsedURI: ParsedURI): MongoConnection
Creates a new MongoConnection from URI.
Creates a new MongoConnection from URI.
- parsedURI
the URI parsed by reactivemongo.api.MongoConnection.parseURI
- Annotations
- @deprecated
- Deprecated
(Since version 0.17.0) Use a safe
connection
asTry
- def connection(nodes: Seq[String], options: MongoConnectionOptions = MongoConnectionOptions.default, authentications: Seq[Authenticate] = Seq.empty, name: Option[String] = None): MongoConnection
Creates a new MongoConnection.
Creates a new MongoConnection.
- nodes
The list of node names (e.g. node1.foo.com:27017); Port is optional (27017 is used by default)
- options
the options for the new connection pool
- authentications
the list of authentication instructions
- name
the name for the connection pool
- Annotations
- @deprecated
- Deprecated
(Since version 0.14.0) Use
connection
withoutauthentications
(but possibly withoutoptions.credentials
)
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.
- val system: ActorSystem
- Definition Classes
- Driver
- Annotations
- @deprecated
- Deprecated
(Since version 0.19.8) Internal: will be made private
- def →[B](y: B): (MongoDriver, B)
- Implicit
- This member is added by an implicit conversion from MongoDriver toArrowAssoc[MongoDriver] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.