com.twitter.finagle.Stack
A convenience class to construct stackable modules. This variant operates over stacks. Useful for building stack elements:
def myNode = new Module[Int=>Int]("myelem") { def make(params: Params, next: Stack[Int=>Int]): Stack[Int=>Int] = { val Multiplier(m) = params[Multiplier] if (m == 1) next // It's a no-op, skip it. else Stack.Leaf("multiply", i => next.make(params)(i)*m) } }
A convenience class to construct stackable modules. This variant operates over stacks. Useful for building stack elements: