Class/Object

reactivemongo.api

MongoDriver

Related Docs: object MongoDriver | package api

Permalink

class MongoDriver extends AnyRef

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. MongoDriver
  2. AnyRef
  3. 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)

    Permalink

    config

    a custom configuration (otherwise the default options are used)

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    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)

    Permalink
    Implicit information
    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

    Permalink
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def close(timeout: FiniteDuration = FiniteDuration(2, SECONDS)): Unit

    Permalink

    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.

  9. def connection(parsedURI: ParsedURI): MongoConnection

    Permalink

    Creates a new MongoConnection from URI.

    Creates a new MongoConnection from URI.

    See the MongoDB URI documentation for more information.

    parsedURI

    The URI parsed by reactivemongo.api.MongoConnection.parseURI

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

    Permalink

    Creates a new MongoConnection from URI.

    Creates a new MongoConnection from URI.

    See the MongoDB URI documentation for more information.

    parsedURI

    The URI parsed by reactivemongo.api.MongoConnection.parseURI

    name

    The name of the newly created reactivemongo.core.actors.MongoDBSystem actor, if needed.

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

    Permalink

    Creates a new MongoConnection.

    Creates a new MongoConnection.

    See the MongoDB URI documentation for more information.

    nodes

    A list of node names, like node1.foo.com:27017. Port is optional, it is 27017 by default.

    options

    Options for the new connection pool.

    authentications

    A list of Authenticates.

    name

    The name of the newly created reactivemongo.core.actors.MongoDBSystem actor, if needed.

  12. def connections: Iterable[MongoConnection]

    Permalink

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

  13. def ensuring(cond: (MongoDriver) ⇒ Boolean, msg: ⇒ Any): MongoDriver

    Permalink
    Implicit information
    This member is added by an implicit conversion from MongoDriver to Ensuring[MongoDriver] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: (MongoDriver) ⇒ Boolean): MongoDriver

    Permalink
    Implicit information
    This member is added by an implicit conversion from MongoDriver to Ensuring[MongoDriver] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: Boolean, msg: ⇒ Any): MongoDriver

    Permalink
    Implicit information
    This member is added by an implicit conversion from MongoDriver to Ensuring[MongoDriver] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: Boolean): MongoDriver

    Permalink
    Implicit information
    This member is added by an implicit conversion from MongoDriver to Ensuring[MongoDriver] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  19. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    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()
  21. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  22. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  23. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  24. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  25. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  27. def numConnections: Int

    Permalink
  28. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  29. val system: ActorSystem

    Permalink
  30. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  31. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. def [B](y: B): (MongoDriver, B)

    Permalink
    Implicit information
    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

    Permalink

    Creates a new MongoConnection from URI.

    Creates a new MongoConnection from URI.

    See the MongoDB URI documentation for more information.

    parsedURI

    The URI parsed by reactivemongo.api.MongoConnection.parseURI

    nbChannelsPerNode

    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

    Permalink

    Creates a new MongoConnection from URI.

    Creates a new MongoConnection from URI.

    See the MongoDB URI documentation for more information.

    parsedURI

    The URI parsed by reactivemongo.api.MongoConnection.parseURI

    nbChannelsPerNode

    Number of channels to open per node.

    name

    The name of the newly created reactivemongo.core.actors.MongoDBSystem actor, if needed.

    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

    Permalink

    Creates a new MongoConnection.

    Creates a new MongoConnection.

    See the MongoDB URI documentation for more information.

    nodes

    A list of node names, like node1.foo.com:27017. Port is optional, it is 27017 by default.

    options

    Options for the new connection pool.

    authentications

    A list of Authenticates.

    nbChannelsPerNode

    Number of channels to open per node. Defaults to 10.

    name

    The name of the newly created reactivemongo.core.actors.MongoDBSystem actor, if needed.

    Annotations
    @deprecated
    Deprecated

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

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