package finagle
- Alphabetic
- By Inheritance
- finagle
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- trait MysqlRichClient extends AnyRef
Supplements a com.twitter.finagle.Client with convenient builder methods for constructing a mysql client.
- case class ServerErrorMonitor(suppressedCodes: Seq[Short]) extends Monitor with Product with Serializable
ServerErrorMonitor is a com.twitter.util.Monitor that specifically handles mysql ServerErrors in a less verbose way then com.twitter.finagle.util.DefaultMonitor.
ServerErrorMonitor is a com.twitter.util.Monitor that specifically handles mysql ServerErrors in a less verbose way then com.twitter.finagle.util.DefaultMonitor.
By default it will log an info statement with details about the ServerError and encourage end users to explicitly
handleorrescuethe ServerError in application code, and then suppress the logging.Specific error codes can be suppressed, with the intention being that this happens when application code is explicitly dealing with that ServerError variant.
val client = Mysql.client .withMonitor(ServerErrorMonitor(Seq(<code>)))
Example: