Packages

object Mysql extends Client[Request, Result] with MysqlRichClient

Example:
  1. val client = Mysql.client
      .withCredentials("", "")
      .withDatabase("")
      .newRichClient("inet!localhost:3306")
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Mysql
  2. MysqlRichClient
  3. Client
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class Client (stack: Stack[ServiceFactory[Request, Result]] = ..., params: Params = ...) extends StdStackClient[Request, Result, Client] with WithSessionPool[Client] with WithDefaultLoadBalancer[Client] with MysqlRichClient with Product with Serializable

    Implements a mysql client in terms of a com.twitter.finagle.client.StackClient.

    Implements a mysql client in terms of a com.twitter.finagle.client.StackClient. The client inherits a wealth of features from finagle including connection pooling and load balancing.

    Additionally, this class provides methods for constructing a rich client which exposes a rich mysql api.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. val client: Client
  6. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def newClient(dest: Name, label: String): ServiceFactory[Request, Result]

    Create a new client connected to dest.

    Create a new client connected to dest. See the user guide for details on destination names.

    Argument label is used to assign a label to this client. The label is used to display stats, etc.

    Definition Classes
    MysqlClient
  15. final def newClient(dest: String, label: String): ServiceFactory[Request, Result]

    Create a new client connected to dest.

    Create a new client connected to dest. See the user guide for details on destination names.

    Argument label is used to assign a label to this client. The label is used to display stats, etc.

    Definition Classes
    Client
  16. final def newClient(dest: String): ServiceFactory[Request, Result]

    Create a new client connected to dest.

    Create a new client connected to dest. See the user guide for details on destination names.

    Definition Classes
    Client
  17. def newRichClient(dest: String): mysql.Client with Transactions with Cursors

    Creates a new RichClient connected to the logical destination described by dest.

    Creates a new RichClient connected to the logical destination described by dest.

    Definition Classes
    MysqlRichClient
  18. def newRichClient(dest: Name, label: String): mysql.Client with Transactions with Cursors

    Creates a new RichClient connected to the logical destination described by dest with the assigned label.

    Creates a new RichClient connected to the logical destination described by dest with the assigned label. The label is used to scope client stats.

    Definition Classes
    MysqlRichClient
  19. def newService(dest: Name, label: String): Service[Request, Result]

    Create a new service which dispatches requests to dest.

    Create a new service which dispatches requests to dest. See the user guide for details on destination names.

    Argument label is used to assign a label to this client. The label is used to display stats, etc.

    Definition Classes
    MysqlClient
  20. final def newService(dest: String, label: String): Service[Request, Result]

    Create a new service which dispatches requests to dest.

    Create a new service which dispatches requests to dest. See the user guide for details on destination names.

    Definition Classes
    Client
  21. final def newService(dest: String): Service[Request, Result]

    Create a new service which dispatches requests to dest.

    Create a new service which dispatches requests to dest. See the user guide for details on destination names.

    Definition Classes
    Client
  22. final def notify(): Unit
    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  24. def richClientStatsReceiver: StatsReceiver
    Definition Classes
    MysqlRichClient
  25. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  26. def toString(): String
    Definition Classes
    AnyRef → Any
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. object param

Deprecated Value Members

  1. def configured[P](p: P)(implicit arg0: Param[P]): Client

    A client configured with parameter p.

    A client configured with parameter p.

    Annotations
    @deprecated
    Deprecated

    (Since version 6.22.0) Use client.configured

  2. def withCharset(charset: Short): Client

    The default character set used when establishing a new session.

    The default character set used when establishing a new session.

    Annotations
    @deprecated
    Deprecated

    (Since version 6.22.0) Use client.withCharset

  3. def withCredentials(u: String, p: String): Client

    The credentials to use when authenticating a new session.

    The credentials to use when authenticating a new session.

    Annotations
    @deprecated
    Deprecated

    (Since version 6.22.0) Use client.withCredentials

  4. def withDatabase(db: String): Client

    Database to use when this client establishes a new session.

    Database to use when this client establishes a new session.

    Annotations
    @deprecated
    Deprecated

    (Since version 6.22.0) Use client.withDatabase

Inherited from MysqlRichClient

Inherited from finagle.Client[Request, Result]

Inherited from AnyRef

Inherited from Any

Ungrouped