com.twitter.finagle.exp.Mysql

Client

Related Doc: package Mysql

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

Implements a mysql client in terms of a com.twitter.finagle.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.

Linear Supertypes
Serializable, Serializable, Product, Equals, MysqlRichClient, StdStackClient[Request, Result, Client], StackClient[Request, Result], StackBasedClient[Request, Result], Transformable[StackClient[Request, Result]], Parameterized[StackClient[Request, Result]], finagle.Client[Request, Result], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Client
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. MysqlRichClient
  7. StdStackClient
  8. StackClient
  9. StackBasedClient
  10. Transformable
  11. Parameterized
  12. Client
  13. AnyRef
  14. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Client(stack: Stack[ServiceFactory[Request, Result]] = ..., params: Params = ...)

Type Members

  1. type In = Packet

    Attributes
    protected
    Definition Classes
    Client → StdStackClient
  2. type Out = Packet

    Attributes
    protected
    Definition Classes
    Client → StdStackClient

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. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def configured[P](p: P)(implicit arg0: Param[P]): Client

    Definition Classes
    StdStackClient → StackClient → Parameterized
  7. def configured[P](psp: (P, Param[P])): StackClient[Request, Result]

    Definition Classes
    Parameterized
  8. def copy1(stack: Stack[ServiceFactory[Request, Result]] = this.stack, params: Params = this.params): Client

    Attributes
    protected
    Definition Classes
    Client → StdStackClient
  9. def endpointer: Stackable[ServiceFactory[Request, Result]]

    Attributes
    protected
    Definition Classes
    StdStackClient
  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. def finalize(): Unit

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

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

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

    Definition Classes
    AnyRef
  15. def newClient(dest: Name, label0: String): ServiceFactory[Request, Result]

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

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

    Definition Classes
    Client
  18. def newDispatcher(transport: Transport[Packet, Packet]): Service[Request, Result]

    Attributes
    protected
    Definition Classes
    Client → StdStackClient
  19. def newRichClient(dest: String): mysql.Client with Transactions

    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
  20. def newRichClient(dest: Name, label: String): mysql.Client with Transactions

    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
  21. def newService(dest: Name, label: String): Service[Request, Result]

    Definition Classes
    StdStackClient → Client
  22. final def newService(dest: String, label: String): Service[Request, Result]

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

    Definition Classes
    Client
  24. def newTransporter(): Transporter[Packet, Packet]

    Attributes
    protected
    Definition Classes
    Client → StdStackClient
  25. final def notify(): Unit

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

    Definition Classes
    AnyRef
  27. val params: Params

    Definition Classes
    Client → StackClient → Parameterized
  28. val stack: Stack[ServiceFactory[Request, Result]]

    Definition Classes
    Client → StackClient
  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  30. def transformed(f: (Stack[ServiceFactory[Request, Result]]) ⇒ Stack[ServiceFactory[Request, Result]]): Client

    Definition Classes
    StdStackClient
  31. def transformed(t: Transformer): StackClient[Request, Result]

    Definition Classes
    StackClient → Transformable
  32. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. def withCharset(charset: Short): Client

    The default character set used when establishing a new session.

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

    The credentials to use when authenticating a new session.

  37. def withDatabase(db: String): Client

    Database to use when this client establishes a new session.

  38. def withParams(params: Params): Client

    Definition Classes
    StdStackClient → StackClient → Parameterized
  39. def withStack(stack: Stack[ServiceFactory[Request, Result]]): Client

    Definition Classes
    StdStackClient → StackClient

Deprecated Value Members

  1. final def newClient(dest: Group[SocketAddress]): ServiceFactory[Request, Result]

    Definition Classes
    Client
    Annotations
    @deprecated
    Deprecated

    (Since version 6.7.x) Use destination names

  2. final def newService(dest: Group[SocketAddress]): Service[Request, Result]

    Definition Classes
    Client
    Annotations
    @deprecated
    Deprecated

    (Since version 6.7.x) Use destination names

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from MysqlRichClient

Inherited from StdStackClient[Request, Result, Client]

Inherited from StackClient[Request, Result]

Inherited from StackBasedClient[Request, Result]

Inherited from Transformable[StackClient[Request, Result]]

Inherited from Parameterized[StackClient[Request, Result]]

Inherited from finagle.Client[Request, Result]

Inherited from AnyRef

Inherited from Any

Ungrouped