ConnectionHandler

sealed trait ConnectionHandler

Connection handler.

Companion:
object
class Object
trait Matchable
class Any

Value members

Abstract methods

Query handler

Query handler

Write handler

Write handler

Concrete methods

Returns a new connection handler that first try this one, or else if it doesn't match, use the other one.

Returns a new connection handler that first try this one, or else if it doesn't match, use the other one.

import acolyte.reactivemongo.ConnectionHandler

def connectionHandler3(h1: ConnectionHandler, h2: ConnectionHandler) =
 h1 orElse h2
final def withQueryHandler[T](handler: T)(implicit f: T => QueryHandler): ConnectionHandler

Creates a copy of this connection handler, with given query handler appended.

Creates a copy of this connection handler, with given query handler appended.

Value parameters:
handler

Query handler

final def withWriteHandler[T](handler: T)(implicit f: T => WriteHandler): ConnectionHandler

Creates a copy of this connection handler, with given write handler appended.

Creates a copy of this connection handler, with given write handler appended.

Value parameters:
handler

Write handler