case class Client(muxer: StackClient[Request, Response] = Client.standardMuxer) extends StackBasedClient[ThriftClientRequest, Array[Byte]] with Parameterized[Client] with Transformable[Client] with CommonParams[Client] with ClientParams[Client] with WithClientTransport[Client] with WithClientAdmissionControl[Client] with WithClientSession[Client] with WithSessionQualifier[Client] with WithDefaultLoadBalancer[Client] with WithThriftPartitioningStrategy[Client] with ThriftRichClient with OpportunisticTlsParams[Client] with WithCompressionPreferences[Client] with Product with Serializable
A ThriftMux com.twitter.finagle.Client.
- See also
Configuration documentation
Thrift documentation
Mux documentation
- Alphabetic
- By Inheritance
- Client
- Serializable
- Product
- Equals
- WithCompressionPreferences
- OpportunisticTlsParams
- ThriftRichClient
- WithThriftPartitioningStrategy
- WithDefaultLoadBalancer
- WithSessionQualifier
- WithClientSession
- WithClientAdmissionControl
- WithClientTransport
- ClientParams
- CommonParams
- StackBasedClient
- Transformable
- Parameterized
- Client
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Client(muxer: StackClient[Request, Response] = Client.standardMuxer)
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 build[ThriftServiceType](name: Name, label: String, cls: Class[_], clientParam: RichClientParam, service: Service[ThriftClientRequest, Array[Byte]]): ThriftServiceType
- Definition Classes
- ThriftRichClient
- def build[ThriftServiceType](name: Name, label: String, cls: Class[_]): ThriftServiceType
- Definition Classes
- ThriftRichClient
- def build[ThriftServiceType](dest: Name, label: String)(implicit arg0: ClassTag[ThriftServiceType]): ThriftServiceType
- Definition Classes
- ThriftRichClient
- def build[ThriftServiceType](dest: String, label: String)(implicit arg0: ClassTag[ThriftServiceType]): ThriftServiceType
- Definition Classes
- ThriftRichClient
- def build[ThriftServiceType](dest: String)(implicit arg0: ClassTag[ThriftServiceType]): ThriftServiceType
- Definition Classes
- ThriftRichClient
- def build[ThriftServiceType](dest: String, label: String, cls: Class[_]): ThriftServiceType
- Definition Classes
- ThriftRichClient
- def build[ThriftServiceType](dest: String, cls: Class[_]): ThriftServiceType
- Definition Classes
- ThriftRichClient
- val clientParam: RichClientParam
- Attributes
- protected
- Definition Classes
- Client → ThriftRichClient
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def configured[P](psp: (P, Param[P])): Client
- Definition Classes
- Client → Parameterized
- def configured[P](p: P)(implicit sp: Param[P]): Client
- Definition Classes
- Parameterized
- def configuredParams(newParams: Params): Client
- Definition Classes
- Parameterized
- lazy val defaultClientName: String
- Attributes
- protected
- Definition Classes
- Client → ThriftRichClient
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def filtered(filter: Filter[Request, Response, Request, Response]): Client
Prepends
filterto the top of the client.Prepends
filterto the top of the client. That is, after materializing the client (newClient/newService)filterwill be the first element which requests flow through. This is a familiar chaining combinator for filters. - 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
- def methodBuilder(dest: Name): MethodBuilder
Create a thriftmux.MethodBuilder for a given destination.
Create a thriftmux.MethodBuilder for a given destination.
- See also
- def methodBuilder(dest: String): MethodBuilder
Create a thriftmux.MethodBuilder for a given destination.
Create a thriftmux.MethodBuilder for a given destination.
- See also
- def multiplex[T](dest: String, label: String)(build: (MultiplexedThriftClient) => T): T
- Definition Classes
- ThriftRichClient
- def multiplex[T](dest: Name, label: String)(build: (MultiplexedThriftClient) => T): T
- Definition Classes
- ThriftRichClient
- val muxer: StackClient[Request, Response]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def newClient(dest: Name, label: String): ServiceFactory[ThriftClientRequest, Array[Byte]]
- Definition Classes
- Client → Client
- final def newClient(dest: String, label: String): ServiceFactory[ThriftClientRequest, Array[Byte]]
- Definition Classes
- Client
- final def newClient(dest: String): ServiceFactory[ThriftClientRequest, Array[Byte]]
- Definition Classes
- Client
- def newService(dest: Name, label: String): Service[ThriftClientRequest, Array[Byte]]
- Definition Classes
- Client → Client
- final def newService(dest: String, label: String): Service[ThriftClientRequest, Array[Byte]]
- Definition Classes
- Client
- final def newService(dest: String): Service[ThriftClientRequest, Array[Byte]]
- Definition Classes
- Client
- def newServicePerEndpoint[ServicePerEndpoint <: Filterable[ServicePerEndpoint]](service: Service[ThriftClientRequest, Array[Byte]], label: String)(implicit builder: ServicePerEndpointBuilder[ServicePerEndpoint]): ServicePerEndpoint
- Attributes
- protected
- Definition Classes
- ThriftRichClient
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def params: Params
- Definition Classes
- Client → Parameterized
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def servicePerEndpoint[ServicePerEndpoint <: Filterable[ServicePerEndpoint]](dest: Name, label: String)(implicit builder: ServicePerEndpointBuilder[ServicePerEndpoint]): ServicePerEndpoint
- Definition Classes
- ThriftRichClient
- def servicePerEndpoint[ServicePerEndpoint <: Filterable[ServicePerEndpoint]](dest: String, label: String)(implicit builder: ServicePerEndpointBuilder[ServicePerEndpoint]): ServicePerEndpoint
- Definition Classes
- ThriftRichClient
- def stack: Stack[ServiceFactory[Request, Response]]
- def stats: StatsReceiver
- Attributes
- protected
- Definition Classes
- ThriftRichClient
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def transformed(t: Transformer): Client
- Definition Classes
- Client → Transformable
- 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()
- val withAdmissionControl: ClientAdmissionControlParams[Client]
- Definition Classes
- Client → WithClientAdmissionControl
- def withClientId(clientId: ClientId): Client
Produce a com.twitter.finagle.ThriftMux.Client using the provided client ID.
- val withCompressionPreferences: CompressionParams[Client]
- Definition Classes
- WithCompressionPreferences
- def withExceptionStatsHandler(exceptionStatsHandler: ExceptionStatsHandler): Client
- Definition Classes
- Client → CommonParams
- def withExecutionOffloaded(pool: FuturePool): Client
- Definition Classes
- Client → CommonParams
- def withExecutionOffloaded(executor: ExecutorService): Client
- Definition Classes
- Client → CommonParams
- def withLabel(label: String): Client
- Definition Classes
- Client → CommonParams
- def withLabels(keywords: String*): Client
- Definition Classes
- CommonParams
- val withLoadBalancer: DefaultLoadBalancingParams[Client]
- Definition Classes
- Client → WithDefaultLoadBalancer
- def withMaxReusableBufferSize(size: Int): Client
Produce a com.twitter.finagle.ThriftMux.Client with the specified max size of the reusable buffer for thrift responses.
Produce a com.twitter.finagle.ThriftMux.Client with the specified max size of the reusable buffer for thrift responses. If this size is exceeded, the buffer is not reused and a new buffer is allocated for the next thrift response. The default max size is 16Kb.
- size
Max size of the reusable buffer for thrift responses in bytes.
- Note
MaxReusableBufferSize will be ignored if TReusableBufferFactory is set.
- def withMonitor(monitor: Monitor): Client
- Definition Classes
- Client → CommonParams
- def withNoOpportunisticTls: Client
- Definition Classes
- Client → OpportunisticTlsParams
- def withOpportunisticTls(level: Level): Client
- Definition Classes
- Client → OpportunisticTlsParams
- def withParams(ps: Params): Client
- Definition Classes
- Client → Parameterized
- val withPartitioning: PartitioningParams[Client]
- Definition Classes
- Client → WithThriftPartitioningStrategy
- def withPerEndpointStats: Client
Produce a com.twitter.finagle.ThriftMux.Client with per-endpoint stats filters
- def withProtocolFactory(pf: TProtocolFactory): Client
Produce a com.twitter.finagle.ThriftMux.Client using the provided protocolFactory.
- def withRequestTimeout(timeout: Duration): Client
- Definition Classes
- Client → CommonParams
- def withRequestTimeout(timeout: Tunable[Duration]): Client
- Definition Classes
- CommonParams
- def withResponseClassifier(responseClassifier: ResponseClassifier): Client
- Definition Classes
- Client → CommonParams
- def withRetryBackoff(backoff: Backoff): Client
- Definition Classes
- Client → ClientParams
- def withRetryBudget(budget: RetryBudget): Client
- Definition Classes
- Client → ClientParams
- def withServiceClass(clazz: Class[_]): Client
Configure the service class that may be used with this client to collect instrumentation metadata.
Configure the service class that may be used with this client to collect instrumentation metadata. This is not necessary to run a service.
- Note
that when using the
.buildmethods this is unnecessary.
- val withSession: ClientSessionParams[Client]
- Definition Classes
- Client → WithClientSession
- val withSessionQualifier: SessionQualificationParams[Client]
- Definition Classes
- Client → WithSessionQualifier
- def withStack(fn: (Stack[ServiceFactory[Request, Response]]) => Stack[ServiceFactory[Request, Response]]): Client
- def withStack(stack: Stack[ServiceFactory[Request, Response]]): Client
Produce a com.twitter.finagle.ThriftMux.Client using the provided stack.
- def withStatsReceiver(statsReceiver: StatsReceiver): Client
- Definition Classes
- Client → CommonParams
- def withTReusableBufferFactory(tReusableBufferFactory: () => TReusableBuffer): Client
Produce a com.twitter.finagle.ThriftMux.Client with a factory creates new TReusableBuffer, the TReusableBuffer can be shared with other client instance.
Produce a com.twitter.finagle.ThriftMux.Client with a factory creates new TReusableBuffer, the TReusableBuffer can be shared with other client instance. If set, the MaxReusableBufferSize will be ignored.
- def withTracer(tracer: Tracer): Client
- Definition Classes
- Client → CommonParams
- val withTransport: ClientTransportParams[Client]
- Definition Classes
- Client → WithClientTransport
Deprecated Value Members
- def newIface[Iface](name: Name, label: String, cls: Class[_], protocolFactory: TProtocolFactory, service: Service[ThriftClientRequest, Array[Byte]]): Iface
- Definition Classes
- ThriftRichClient
- Annotations
- @deprecated
- Deprecated
(Since version 2017-8-16) Use com.twitter.finagle.thrift.RichClientParam
- def newIface[Iface](name: Name, label: String, cls: Class[_], clientParam: RichClientParam, service: Service[ThriftClientRequest, Array[Byte]]): Iface
- Definition Classes
- ThriftRichClient
- Annotations
- @deprecated
- Deprecated
(Since version 2017-11-20) Use com.twitter.finagle.ThriftRichClient#build
- def newIface[Iface](name: Name, label: String, cls: Class[_]): Iface
- Definition Classes
- ThriftRichClient
- Annotations
- @deprecated
- Deprecated
(Since version 2017-11-20) Use com.twitter.finagle.ThriftRichClient#build
- def newIface[Iface](dest: Name, label: String)(implicit arg0: ClassTag[Iface]): Iface
- Definition Classes
- ThriftRichClient
- Annotations
- @deprecated
- Deprecated
(Since version 2017-11-20) Use com.twitter.finagle.ThriftRichClient#build
- def newIface[Iface](dest: String, label: String)(implicit arg0: ClassTag[Iface]): Iface
- Definition Classes
- ThriftRichClient
- Annotations
- @deprecated
- Deprecated
(Since version 2017-11-20) Use com.twitter.finagle.ThriftRichClient#build
- def newIface[Iface](dest: String)(implicit arg0: ClassTag[Iface]): Iface
- Definition Classes
- ThriftRichClient
- Annotations
- @deprecated
- Deprecated
(Since version 2017-11-20) Use com.twitter.finagle.ThriftRichClient#build
- def newIface[Iface](dest: String, label: String, cls: Class[_]): Iface
- Definition Classes
- ThriftRichClient
- Annotations
- @deprecated
- Deprecated
(Since version 2017-11-20) Use com.twitter.finagle.ThriftRichClient#build
- def newIface[Iface](dest: String, cls: Class[_]): Iface
- Definition Classes
- ThriftRichClient
- Annotations
- @deprecated
- Deprecated
(Since version 2017-11-20) Use com.twitter.finagle.ThriftRichClient#build
- def newServiceIface[ServiceIface <: Filterable[ServiceIface]](dest: Name, label: String)(implicit builder: ServiceIfaceBuilder[ServiceIface]): ServiceIface
- Definition Classes
- ThriftRichClient
- Annotations
- @deprecated
- Deprecated
(Since version 2017-11-13) Use com.twitter.finagle.ThriftRichClient#servicePerEndpoint[ServicePerEndpoint]
- def newServiceIface[ServiceIface <: Filterable[ServiceIface]](dest: String, label: String)(implicit builder: ServiceIfaceBuilder[ServiceIface]): ServiceIface
- Definition Classes
- ThriftRichClient
- Annotations
- @deprecated
- Deprecated
(Since version 2017-11-13) Use com.twitter.finagle.ThriftRichClient#servicePerEndpoint[ServicePerEndpoint]