class MongoDriver extends Driver

Linear Supertypes
Driver, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MongoDriver
  2. Driver
  3. AnyRef
  4. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MongoDriver(config: Option[Config] = None, classLoader: Option[ClassLoader] = None)

    config

    a custom configuration (otherwise the default options are used)

    classLoader

    a classloader used to load the actor system

  2. new MongoDriver(config: Option[Config])
    Annotations
    @deprecated
    Deprecated

    (Since version 0.12-RC6) Use the constructor with the classloader

Type Members

  1. case class AddConnection(name: String, nodes: Seq[String], options: MongoConnectionOptions, mongosystem: ActorRef) extends Product with Serializable
    Annotations
    @deprecated
    Deprecated

    (Since version 0.12.7) Will be made private

  2. class SupervisorActor extends Actor with Product with Serializable with Serializable
    Annotations
    @deprecated
    Deprecated

    (Since version 0.12.7) Will be made private

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from MongoDriver to any2stringadd[MongoDriver] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (MongoDriver, B)
    Implicit
    This member is added by an implicit conversion from MongoDriver to ArrowAssoc[MongoDriver] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. final def askClose(timeout: FiniteDuration)(implicit executionContext: 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
  8. final def askConnection(nodes: Seq[String], options: MongoConnectionOptions, authentications: Seq[Authenticate], 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

    authentications

    the list of authentication instructions

    name

    the name for the connection pool

    Attributes
    protected
    Definition Classes
    Driver
  9. val classLoader: Option[ClassLoader]
    Attributes
    protected
    Definition Classes
    MongoDriver → Driver
  10. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  11. 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.

  12. val config: Option[Config]
    Attributes
    protected
    Definition Classes
    MongoDriver → Driver
  13. def connection(parsedURI: ParsedURI): MongoConnection

    Creates a new MongoConnection from URI.

    Creates a new MongoConnection from URI.

    See how to connect to the database

    parsedURI

    the URI parsed by reactivemongo.api.MongoConnection.parseURI

  14. def connection(parsedURI: ParsedURI, strictUri: Boolean): Try[MongoConnection]

    Creates a new MongoConnection from URI.

    Creates a new MongoConnection from URI.

    See how to connect to the database

    parsedURI

    the URI parsed by reactivemongo.api.MongoConnection.parseURI

    strictUri

    if true the parsed URI must be strict, without ignored/unsupported options

  15. def connection(parsedURI: ParsedURI, name: Option[String], strictUri: Boolean): Try[MongoConnection]

    Creates a new MongoConnection from URI.

    Creates a new MongoConnection from URI.

    See how to connect to the database

    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

  16. def connection(parsedURI: ParsedURI, name: Option[String]): MongoConnection

    Creates a new MongoConnection from URI.

    Creates a new MongoConnection from URI.

    See how to connect to the database

    parsedURI

    the URI parsed by reactivemongo.api.MongoConnection.parseURI

    name

    the name for the connection pool

  17. def connection(uri: String, name: Option[String], strictUri: Boolean): Try[MongoConnection]

    Creates a new MongoConnection from URI.

    Creates a new MongoConnection from URI.

    See how to connect to the database

    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

  18. def connection(uriStrict: String): Try[MongoConnection]

    Creates a new MongoConnection from URI.

    Creates a new MongoConnection from URI.

    See how to connect to the database

    uriStrict

    the strict URI, that will be parsed by reactivemongo.api.MongoConnection.parseURI

  19. def connection(nodes: Seq[String], options: MongoConnectionOptions = MongoConnectionOptions(), authentications: Seq[Authenticate] = Seq.empty, name: Option[String] = None): MongoConnection

    Creates a new MongoConnection.

    Creates a new MongoConnection.

    See how to connect to the database

    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

  20. final val connectionMonitors: Map[ActorRef, MongoConnection]
    Attributes
    protected
    Definition Classes
    Driver
  21. def ensuring(cond: (MongoDriver) ⇒ Boolean, msg: ⇒ Any): MongoDriver
    Implicit
    This member is added by an implicit conversion from MongoDriver to Ensuring[MongoDriver] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  22. def ensuring(cond: (MongoDriver) ⇒ Boolean): MongoDriver
    Implicit
    This member is added by an implicit conversion from MongoDriver to Ensuring[MongoDriver] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  23. def ensuring(cond: Boolean, msg: ⇒ Any): MongoDriver
    Implicit
    This member is added by an implicit conversion from MongoDriver to Ensuring[MongoDriver] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  24. def ensuring(cond: Boolean): MongoDriver
    Implicit
    This member is added by an implicit conversion from MongoDriver to Ensuring[MongoDriver] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  25. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  27. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  28. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from MongoDriver to StringFormat[MongoDriver] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  29. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  30. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  31. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  32. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  33. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  34. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  35. final val supervisorName: String
    Attributes
    protected
    Definition Classes
    Driver
  36. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  37. val system: ActorSystem
    Definition Classes
    Driver
  38. def toString(): String
    Definition Classes
    AnyRef → Any
  39. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  42. def [B](y: B): (MongoDriver, B)
    Implicit
    This member is added by an implicit conversion from MongoDriver to ArrowAssoc[MongoDriver] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Deprecated Value Members

  1. def connection(parsedURI: ParsedURI, nbChannelsPerNode: Int): MongoConnection

    Creates a new MongoConnection from URI.

    Creates a new MongoConnection from URI.

    See how to connect to the database

    parsedURI

    the URI parsed by reactivemongo.api.MongoConnection.parseURI

    nbChannelsPerNode

    the number of channels to open per node

    Annotations
    @deprecated
    Deprecated

    (Since version 0.11.3) Must you connection with nbChannelsPerNode set in the options of the parsedURI.

  2. def connection(parsedURI: ParsedURI, nbChannelsPerNode: Int, name: Option[String]): MongoConnection

    Creates a new MongoConnection from URI.

    Creates a new MongoConnection from URI.

    See how to connect to the database

    parsedURI

    the URI parsed by reactivemongo.api.MongoConnection.parseURI

    nbChannelsPerNode

    the number of channels to open per node

    name

    the name for the connection pool

    Annotations
    @deprecated
    Deprecated

    (Since version 0.11.3) Must you reactivemongo.api.MongoDriver.connection(reactivemongo.api.MongoConnection.ParsedURI,Option[String]):reactivemongo.api.MongoConnection connection(..)]] with nbChannelsPerNode set in the parsedURI.

  3. def connection(nodes: Seq[String], options: MongoConnectionOptions, authentications: Seq[Authenticate], nbChannelsPerNode: Int, name: Option[String]): MongoConnection

    Creates a new MongoConnection.

    Creates a new MongoConnection.

    See how to connect to the database

    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

    nbChannelsPerNode

    the number of channels to open per node

    name

    the name for the connection pool

    Annotations
    @deprecated
    Deprecated

    (Since version 0.11.3) Must use connection with nbChannelsPerNode set in the options.

  4. def connections: Iterable[MongoConnection]

    Keep a list of all connections so that we can terminate the actors

    Keep a list of all connections so that we can terminate the actors

    Annotations
    @deprecated
    Deprecated

    (Since version 0.12-RC1) Will be made private

  5. def numConnections: Int
    Annotations
    @deprecated
    Deprecated

    (Since version 0.12-RC1) Will be made private

Inherited from Driver

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from MongoDriver to any2stringadd[MongoDriver]

Inherited by implicit conversion StringFormat from MongoDriver to StringFormat[MongoDriver]

Inherited by implicit conversion Ensuring from MongoDriver to Ensuring[MongoDriver]

Inherited by implicit conversion ArrowAssoc from MongoDriver to ArrowAssoc[MongoDriver]

Ungrouped