trait StackRouter[Req, Rsp] extends Router[Req, Rsp] with Parameterized[StackRouter[Req, Rsp]]
A Router that composes three com.twitter.finagle.Stacks:
* pathStack is a per-Dst.Path Stack segment. When this Stack is applied, the
Dst.Path Stack.Param is
configured. This type of destination has a destination
com.twitter.finagle.Path, a base com.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 an
com.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, the BindingFactory.Dest Stack.Param
is configured with a com.twitter.finagle.Name.Bound that does
not have a residual com.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
multiple boundStack and a boundStack to be shared by multiple
pathStacks. It is the StackRouter's job to connect these
Stack segments and to set the proper
com.twitter.finagle.Stack.Params as described above.
- Alphabetic
- By Inheritance
- StackRouter
- Parameterized
- Router
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
boundFiltered(f: Filter[Req, Rsp, Req, Rsp]): StackRouter[Req, Rsp]
Prepend
boundStackwith the given filter. - abstract def boundStack: Stack[ServiceFactory[Req, Rsp]]
-
abstract
def
clientFiltered(f: Filter[Req, Rsp, Req, Rsp]): StackRouter[Req, Rsp]
Prepend
clientStackwith the given filter. - abstract def clientStack: Stack[ServiceFactory[Req, Rsp]]
-
abstract
def
factory(): ServiceFactory[Req, Rsp]
Create a new ServiceFactory that performs per-request routing.
Create a new ServiceFactory that performs per-request routing.
- Definition Classes
- Router
-
abstract
def
params: Params
The current parameter map used in this StackRouter
The current parameter map used in this StackRouter
- Definition Classes
- StackRouter → Parameterized
-
abstract
def
pathFiltered(f: Filter[Req, Rsp, Req, Rsp]): StackRouter[Req, Rsp]
Prepend
pathStackwith the given filter. - 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]
- Definition Classes
- StackRouter → Parameterized
- abstract def withPathStack(stack: Stack[ServiceFactory[Req, Rsp]]): StackRouter[Req, Rsp]
Concrete 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
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
configured[P](psp: (P, Param[P])): StackRouter[Req, Rsp]
- Definition Classes
- Parameterized
-
def
configured[P](p: P)(implicit sp: Param[P]): StackRouter[Req, Rsp]
- Definition Classes
- Parameterized
-
def
configuredParams(newParams: Params): StackRouter[Req, Rsp]
- Definition Classes
- Parameterized
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )