package finagle
- Alphabetic
- Public
- Protected
Type Members
- trait HigherKindedToMethodPerEndpoint[Alg[_[_]]] extends AnyRef
Since Scrooge removed the higher-kinded service traits implemented in
Since Scrooge removed the higher-kinded service traits implemented in
com.twitter.util.Future
, and inlined those method definitions into
MethodPerEndpointtraits, we had to reintroduce the higher-kinded traits with ourAddCatsTaglessInstancesscalafix rule.The problem is that Finagle uses reflection to figure out what class to instantiate, and the reflection logic specifically looks for
ServiceName$$MethodPerEndpoint, whereServiceNameis thecom.twitter.finagle.thrift.GeneratedThriftService
object. After running the Scalafix rule, the
ServiceName$$MethodPerEndpointdefinition will extendServiceName[Future], but passing an instance ofServiceName[Future]isn't good enough: it seems like it must be theMethodPerEndpoint.This typeclass encodes the relationship between the higher-kinded service trait and its
MethodPerEndpointcounterpart, so that if we have an instance of the service trait, we can convert to and from the relatedMethodPerEndpoint.- Alg
the higher-kinded service trait whose relationship to a
MethodPerEndpointtrait is being encoded by the instance
- class ThriftClientConfiguration extends AnyRef
- final class ToMethodPerEndpointOps[Alg[_[_]]] extends AnyVal
Value Members
- object HigherKindedToMethodPerEndpoint
- object ThriftClient
- object ThriftClientConfiguration
- object ThriftServer