MongoConnectionOptions

reactivemongo.api.MongoConnectionOptions
See theMongoConnectionOptions companion object

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

An optional application name

An optional application name

Attributes

The name of the database used for authentication

The name of the database used for authentication

Attributes

The list of allowed compressors (e.g. snappy)

The list of allowed compressors (e.g. snappy)

Attributes

The number of milliseconds to wait for a connection to be established before giving up.

The number of milliseconds to wait for a connection to be established before giving up.

Attributes

def copy(connectTimeoutMS: Int, authenticationDatabase: Option[String], sslEnabled: Boolean, sslAllowsInvalidCert: Boolean, authenticationMechanism: AuthenticationMode, tcpNoDelay: Boolean, keepAlive: Boolean, nbChannelsPerNode: Int, maxInFlightRequestsPerChannel: Option[Int], minIdleChannelsPerNode: Int, nettyEventLoopThreads: Int, writeConcern: WriteConcern, readPreference: ReadPreference, failoverStrategy: FailoverStrategy, heartbeatFrequencyMS: Int, maxIdleTimeMS: Int, maxHistorySize: Int, credentials: Map[String, Credential], keyStore: Option[KeyStore], readConcern: ReadConcern, appName: Option[String]): MongoConnectionOptions

The credentials per authentication database names

The credentials per authentication database names

Attributes

override def equals(that: Any): Boolean

Compares the receiver object (this) with the argument object (that) for equivalence.

Compares the receiver object (this) with the argument object (that) for equivalence.

Any implementation of this method should be an equivalence relation:

  • It is reflexive: for any instance x of type Any, x.equals(x) should return true.
  • It is symmetric: for any instances x and y of type Any, x.equals(y) should return true if and only if y.equals(x) returns true.
  • It is transitive: for any instances x, y, and z of type Any if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.

If you override this method, you should verify that your implementation remains an equivalence relation. Additionally, when overriding this method it is usually necessary to override hashCode to ensure that objects which are "equal" (o1.equals(o2) returns true) hash to the same scala.Int. (o1.hashCode.equals(o2.hashCode)).

Attributes

that

the object to compare against this object for equality.

Returns:

true if the receiver object is equivalent to the argument; false otherwise.

Definition Classes
Any

The default failover strategy

The default failover strategy

Attributes

override def hashCode: Int

Calculate a hash code value for the object.

Calculate a hash code value for the object.

The default hashing algorithm is platform dependent.

Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)) yet not be equal (o1.equals(o2) returns false). A degenerate implementation could always return 0. However, it is required that if two objects are equal (o1.equals(o2) returns true) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals method.

Attributes

Returns:

the hash code value for this object.

Definition Classes
Any

The interval in milliseconds used by monitor to refresh the node set (default: 10000 aka 10s)

The interval in milliseconds used by monitor to refresh the node set (default: 10000 aka 10s)

Attributes

TCP KeepAlive flag (ReactiveMongo-specific option). The default value is false (see SO_KEEPALIVE).

TCP KeepAlive flag (ReactiveMongo-specific option). The default value is false (see SO_KEEPALIVE).

Attributes

An optional key store

An optional key store

Attributes

The maximum size of the pool history (default: 25)

The maximum size of the pool history (default: 25)

Attributes

The maximum number of milliseconds that a channel can remain idle in the connection pool before being removed and closed (default: 0 to disable, as implemented using Netty IdleStateHandler); If not 0, must be greater or equal to heartbeatFrequencyMS.

The maximum number of milliseconds that a channel can remain idle in the connection pool before being removed and closed (default: 0 to disable, as implemented using Netty IdleStateHandler); If not 0, must be greater or equal to heartbeatFrequencyMS.

Attributes

The maximum number of requests processed per channel

The maximum number of requests processed per channel

Attributes

'''EXPERIMENTAL:'''

'''EXPERIMENTAL:'''

Attributes

The minimum number of idle channels per node

The minimum number of idle channels per node

Attributes

The number of channels (connections) per node (ReactiveMongo-specific option)

The number of channels (connections) per node (ReactiveMongo-specific option)

Attributes

The number of threads in the netty event loop. 0 lets Netty decide, which by default will select 2 times the number of available processors.

The number of threads in the netty event loop. 0 lets Netty decide, which by default will select 2 times the number of available processors.

Attributes

The default read concern

The default read concern

Attributes

The default read preference

The default read preference

Attributes

If sslEnabled is true, this one indicates whether to accept invalid certificates (e.g. self-signed).

If sslEnabled is true, this one indicates whether to accept invalid certificates (e.g. self-signed).

Attributes

Enable SSL connection (required to be accepted on server-side)

Enable SSL connection (required to be accepted on server-side)

Attributes

TCP NoDelay flag (ReactiveMongo-specific option). The default value is false (see TCP_NODELAY).

TCP NoDelay flag (ReactiveMongo-specific option). The default value is false (see TCP_NODELAY).

Attributes

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns:

a string representation of the object.

Definition Classes
Any

'''EXPERIMENTAL:'''

'''EXPERIMENTAL:'''

Attributes

The default write concern

The default write concern

Attributes