trait
StackRouter[Req, Rsp] extends Router[Req, Rsp] with Parameterized[StackRouter[Req, Rsp]]
Abstract Value Members
-
abstract
def
boundFiltered(f: Filter[Req, Rsp, Req, Rsp]): StackRouter[Req, Rsp]
-
abstract
def
boundStack: Stack[ServiceFactory[Req, Rsp]]
-
abstract
def
clientFiltered(f: Filter[Req, Rsp, Req, Rsp]): StackRouter[Req, Rsp]
-
abstract
def
clientStack: Stack[ServiceFactory[Req, Rsp]]
-
abstract
def
factory(): ServiceFactory[Req, Rsp]
-
abstract
def
params: Params
-
abstract
def
pathFiltered(f: Filter[Req, Rsp, Req, Rsp]): StackRouter[Req, Rsp]
-
abstract
def
pathStack: Stack[ServiceFactory[Req, Rsp]]
-
abstract
def
withBoundStack(stack: Stack[ServiceFactory[Req, Rsp]]): StackRouter[Req, Rsp]
-
abstract
def
withClientStack(stack: Stack[ServiceFactory[Req, Rsp]]): StackRouter[Req, Rsp]
-
abstract
def
withParams(ps: Params): StackRouter[Req, Rsp]
-
abstract
def
withPathStack(stack: Stack[ServiceFactory[Req, Rsp]]): StackRouter[Req, Rsp]
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
def
configured[P](psp: (P, Param[P])): StackRouter[Req, Rsp]
-
def
configured[P](p: P)(implicit sp: Param[P]): StackRouter[Req, Rsp]
-
def
configuredParams(newParams: Params): StackRouter[Req, Rsp]
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Inherited from Router[Req, Rsp]
Inherited from AnyRef
Inherited from Any
A Router that composes three
com.twitter.finagle.Stack
s:*
pathStack
is a per-Dst.Path Stack segment. When this Stack is applied, the Dst.PathStack.Param
is configured. This type of destination has a destinationcom.twitter.finagle.Path
, a basecom.twitter.finagle.Dtab
, and a local (usually per-request)Dtab
.*
boundStack
is a per-com.twitter.finagle.buoyant.Dst.Bound
Stack segment. When this Stack is applied, the Dst.Bound Stack.Param is configured. This type of destination has ancom.twitter.finagle.Addr
, a bound id, and a residual path.*
clientStack
is a per-com.twitter.finagle.BindingFactory.Dest
Stack segment. When this Stack is applied, theBindingFactory.Dest
Stack.Param
is configured with acom.twitter.finagle.Name.Bound
that does not have a residualcom.twitter.finagle.Path
.The stack is divided into these layers so that caching may be applied bottom-up. This enables a
clientStack
to be shared by multipleboundStack
and aboundStack
to be shared by multiplepathStack
s. It is theStackRouter
's job to connect theseStack
segments and to set the propercom.twitter.finagle.Stack.Param
s as described above.