Class

io.fsq.rogue.connection

AsyncMongoClientManager

Related Doc: package connection

Permalink

class AsyncMongoClientManager extends MongoClientManager[MongoClient, MongoDatabase, MongoCollection]

MongoConnectionManager for the new async client.

Linear Supertypes
MongoClientManager[MongoClient, MongoDatabase, MongoCollection], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AsyncMongoClientManager
  2. MongoClientManager
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AsyncMongoClientManager()

    Permalink

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def closeAll(): Unit

    Permalink

    Close all clients and clear the internal map.

    Close all clients and clear the internal map.

    Definition Classes
    MongoClientManager
  7. def closeClient(client: MongoClient): Unit

    Permalink

    Close a client connection, without removing it from the internal map.

    Close a client connection, without removing it from the internal map.

    Attributes
    protected
    Definition Classes
    AsyncMongoClientManagerMongoClientManager
  8. def defineDb(name: MongoIdentifier, client: MongoClient, dbName: String): Option[(MongoClient, String)]

    Permalink
    Definition Classes
    MongoClientManager
  9. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. def getClient(name: MongoIdentifier): Option[(MongoClient, String)]

    Permalink
    Definition Classes
    MongoClientManager
  14. def getClientOrThrow(name: MongoIdentifier): (MongoClient, String)

    Permalink
    Definition Classes
    MongoClientManager
  15. def getCodecRegistry(db: MongoDatabase): CodecRegistry

    Permalink

    Get a CodecRegistry from a MongoDatabase.

    Get a CodecRegistry from a MongoDatabase.

    Attributes
    protected
    Definition Classes
    AsyncMongoClientManagerMongoClientManager
  16. def getCodecRegistryOrThrow(name: MongoIdentifier): CodecRegistry

    Permalink
    Definition Classes
    MongoClientManager
  17. def getCollection[Document](db: MongoDatabase, name: String, documentClass: Class[Document], readPreferenceOpt: Option[ReadPreference], writeConcernOpt: Option[WriteConcern]): MongoCollection[Document]

    Permalink

    Get a MongoCollection from a MongoDatabase.

    Get a MongoCollection from a MongoDatabase. TODO(jacob): We should get rid of the option to send down a read preference here and just use the one on the query.

    Attributes
    protected
    Definition Classes
    AsyncMongoClientManagerMongoClientManager
  18. def getConnectionIds: Set[MongoIdentifier]

    Permalink

    Get a set of all connection ids handled by this client manager.

    Get a set of all connection ids handled by this client manager.

    Definition Classes
    MongoClientManager
  19. def getDatabase(client: MongoClient, name: String): MongoDatabase

    Permalink

    Get a MongoDatabase from a MongoClient.

    Get a MongoDatabase from a MongoClient.

    Attributes
    protected
    Definition Classes
    AsyncMongoClientManagerMongoClientManager
  20. def getDb(name: MongoIdentifier): Option[MongoDatabase]

    Permalink
    Definition Classes
    MongoClientManager
  21. def getDbOrThrow(name: MongoIdentifier): MongoDatabase

    Permalink
    Definition Classes
    MongoClientManager
  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. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  28. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  29. def use[T](name: MongoIdentifier)(f: (MongoDatabase) ⇒ T): T

    Permalink

    Executes the given function with the specified database.

    Executes the given function with the specified database. Throws if the database does not exist.

    Definition Classes
    MongoClientManager
  30. def useCollection[Document, T](name: MongoIdentifier, collectionName: String, documentClass: Class[Document], readPreferenceOpt: Option[ReadPreference] = None, writeConcernOpt: Option[WriteConcern] = None)(f: (MongoCollection[Document]) ⇒ T): T

    Permalink

    Executes the given function with the specified database and collection.

    Executes the given function with the specified database and collection. Throws if the database does not exist.

    Definition Classes
    MongoClientManager
  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( ... )

Inherited from MongoClientManager[MongoClient, MongoDatabase, MongoCollection]

Inherited from AnyRef

Inherited from Any

Ungrouped