trait StdStackRouter[Req, Rsp, This <: StdStackRouter[Req, Rsp, This]] extends StackRouter[Req, Rsp]
The standard template implementation of StackRouter.
Provides Stack caching so that e.g. multiple per-path stacks may
share common underlying boundStack and clientStack service
factories.
Implementers must provide a newIdentifier() implementation that
l
- Self Type
- StdStackRouter[Req, Rsp, This]
- Alphabetic
- By Inheritance
- StdStackRouter
- StackRouter
- Parameterized
- Router
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
boundStack: Stack[ServiceFactory[Req, Rsp]]
- Definition Classes
- StackRouter
-
abstract
def
client: StackClient[Req, Rsp]
The router uses a protocol-specific StackClient to build the underlying client so that the Router doesn't need to replicate Transporter/Dispatcher/endpointer logic.
The router uses a protocol-specific StackClient to build the underlying client so that the Router doesn't need to replicate Transporter/Dispatcher/endpointer logic.
- Attributes
- protected
-
abstract
def
copy1(pathStack: Stack[ServiceFactory[Req, Rsp]] = this.pathStack, boundStack: Stack[ServiceFactory[Req, Rsp]] = this.boundStack, client: StackClient[Req, Rsp] = this.client, params: Params = this.params): This
A copy constructor in lieu of defining StackRouter as a case class.
A copy constructor in lieu of defining StackRouter as a case class.
- Attributes
- protected
-
abstract
def
newIdentifier(): Identifier[Req]
Builds an Identifier, a function that yields a Dst for each request.
Builds an Identifier, a function that yields a Dst for each request.
- Attributes
- protected
-
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
pathStack: Stack[ServiceFactory[Req, Rsp]]
- Definition Classes
- StackRouter
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
boundFiltered(f: Filter[Req, Rsp, Req, Rsp]): This
Prepend
boundStackwith the given filter.Prepend
boundStackwith the given filter.- Definition Classes
- StdStackRouter → StackRouter
-
def
clientFiltered(f: Filter[Req, Rsp, Req, Rsp]): This
Prepend
clientStackwith the given filter.Prepend
clientStackwith the given filter.- Definition Classes
- StdStackRouter → StackRouter
-
def
clientStack: Stack[ServiceFactory[Req, Rsp]]
- Definition Classes
- StdStackRouter → StackRouter
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
configured[P](psp: (P, Param[P])): This
Java compat
Java compat
- Definition Classes
- StdStackRouter → StackRouter → Parameterized
-
def
configured[P](p: P)(implicit arg0: Param[P]): This
Creates a new StackClient with parameter
p.Creates a new StackClient with parameter
p.- Definition Classes
- StdStackRouter → StackRouter → 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
factory(): ServiceFactory[Req, Rsp]
Create a new ServiceFactory that performs per-request routing.
Create a new ServiceFactory that performs per-request routing.
- Definition Classes
- StdStackRouter → Router
-
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
-
def
pathFiltered(f: Filter[Req, Rsp, Req, Rsp]): This
Prepend
pathStackwith the given filter.Prepend
pathStackwith the given filter.- Definition Classes
- StdStackRouter → StackRouter
-
def
router: Stackable[ServiceFactory[Req, Rsp]]
A Stack module that is pushed to the top of the
pathStack.A Stack module that is pushed to the top of the
pathStack. and materializesboundStackandclientStackbelow, with caching.- Attributes
- protected
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toStackable(f: Filter[Req, Rsp, Req, Rsp]): Stackable[ServiceFactory[Req, Rsp]]
- Attributes
- protected
-
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( ... )
-
def
withBoundStack(stack: Stack[ServiceFactory[Req, Rsp]]): This
- Definition Classes
- StdStackRouter → StackRouter
-
def
withClientStack(stack: Stack[ServiceFactory[Req, Rsp]]): This
- Definition Classes
- StdStackRouter → StackRouter
-
def
withParams(params: Params): This
Creates a new StackClient with
paramsused to configure this StackClient'sstack.Creates a new StackClient with
paramsused to configure this StackClient'sstack.- Definition Classes
- StdStackRouter → StackRouter → Parameterized
-
def
withPathStack(stack: Stack[ServiceFactory[Req, Rsp]]): This
- Definition Classes
- StdStackRouter → StackRouter