case class RichServerParam(protocolFactory: TProtocolFactory = Thrift.param.protocolFactory, serviceName: String = "thrift", maxThriftBufferSize: Int = Thrift.param.maxThriftBufferSize, serverStats: StatsReceiver = LoadedStatsReceiver, responseClassifier: ResponseClassifier = ResponseClassifier.Default, perEndpointStats: Boolean = false) extends Product with Serializable
Produce a server with params wrapped in RichServerParam
- protocolFactory
A
TProtocolFactory
creates protocol objects from transports- serviceName
For server stats, (default: "thrift")
- maxThriftBufferSize
The max size of a reusable buffer for the thrift response
- serverStats
StatsReceiver for recording metrics
- responseClassifier
- perEndpointStats
Whether to record per-endpoint stats, (default: false). By enabling this, the specific Thrift Exceptions can be recorded. See PerEndpoint StatsFilter
- Alphabetic
- By Inheritance
- RichServerParam
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new RichServerParam()
- new RichServerParam(protocolFactory: TProtocolFactory)
- new RichServerParam(protocolFactory: TProtocolFactory, maxThriftBufferSize: Int)
- new RichServerParam(protocolFactory: TProtocolFactory, serviceName: String, maxThriftBufferSize: Int, serverStats: StatsReceiver, responseClassifier: ResponseClassifier)
- new RichServerParam(protocolFactory: TProtocolFactory = Thrift.param.protocolFactory, serviceName: String = "thrift", maxThriftBufferSize: Int = Thrift.param.maxThriftBufferSize, serverStats: StatsReceiver = LoadedStatsReceiver, responseClassifier: ResponseClassifier = ResponseClassifier.Default, perEndpointStats: Boolean = false)
- protocolFactory
A
TProtocolFactory
creates protocol objects from transports- serviceName
For server stats, (default: "thrift")
- maxThriftBufferSize
The max size of a reusable buffer for the thrift response
- serverStats
StatsReceiver for recording metrics
- responseClassifier
- perEndpointStats
Whether to record per-endpoint stats, (default: false). By enabling this, the specific Thrift Exceptions can be recorded. See PerEndpoint StatsFilter
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val maxThriftBufferSize: Int
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val perEndpointStats: Boolean
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val protocolFactory: TProtocolFactory
- val responseClassifier: ResponseClassifier
- val restrictedProtocolFactory: TProtocolFactory
Apply system-wide read limit on TBinaryProtocol and TCompactProtocol if any of the following System Properties are set: org.apache.thrift.readLength (deprecated) com.twitter.finagle.thrift.stringLengthLimit com.twitter.finagle.thrift.containerLengthLimit
- val serverStats: StatsReceiver
- val serviceName: String
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()