com.twitter.finagle.Stack
A typeclass representing P-typed elements, eligible as parameters for stack configuration. Note that the typeclass instance itself is used as the key in parameter maps; thus typeclasses should be persistent:
case class Multiplier(i: Int) { def mk(): (Multipler, Stack.Param[Multipler]) = (this, Multiplier.param) } object Multiplier { implicit val param = Stack.Param(Multiplier(123)) }
The mk() function together with Parameterized.configured provides a convenient Java interface.
mk()
Parameterized.configured
A typeclass representing P-typed elements, eligible as parameters for stack configuration. Note that the typeclass instance itself is used as the key in parameter maps; thus typeclasses should be persistent:
The
mk()
function together withParameterized.configured
provides a convenient Java interface.