t

io.buoyant.router

StdStackRouter

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]
Linear Supertypes
StackRouter[Req, Rsp], Parameterized[StackRouter[Req, Rsp]], Router[Req, Rsp], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. StdStackRouter
  2. StackRouter
  3. Parameterized
  4. Router
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def boundStack: Stack[ServiceFactory[Req, Rsp]]
    Definition Classes
    StackRouter
  2. 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
  3. 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
  4. 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
  5. abstract def params: Params

    The current parameter map used in this StackRouter

    The current parameter map used in this StackRouter

    Definition Classes
    StackRouter → Parameterized
  6. abstract def pathStack: Stack[ServiceFactory[Req, Rsp]]
    Definition Classes
    StackRouter

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def boundFiltered(f: Filter[Req, Rsp, Req, Rsp]): This

    Prepend boundStack with the given filter.

    Prepend boundStack with the given filter.

    Definition Classes
    StdStackRouterStackRouter
  6. def clientFiltered(f: Filter[Req, Rsp, Req, Rsp]): This

    Prepend clientStack with the given filter.

    Prepend clientStack with the given filter.

    Definition Classes
    StdStackRouterStackRouter
  7. def clientStack: Stack[ServiceFactory[Req, Rsp]]
    Definition Classes
    StdStackRouterStackRouter
  8. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def configured[P](psp: (P, Param[P])): This

    Java compat

    Java compat

    Definition Classes
    StdStackRouterStackRouter → Parameterized
  10. 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
    StdStackRouterStackRouter → Parameterized
  11. def configuredParams(newParams: Params): StackRouter[Req, Rsp]
    Definition Classes
    Parameterized
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  14. 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
    StdStackRouterRouter
  15. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  22. def pathFiltered(f: Filter[Req, Rsp, Req, Rsp]): This

    Prepend pathStack with the given filter.

    Prepend pathStack with the given filter.

    Definition Classes
    StdStackRouterStackRouter
  23. 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 materializes boundStack and clientStack below, with caching.

    Attributes
    protected
  24. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  25. def toStackable(f: Filter[Req, Rsp, Req, Rsp]): Stackable[ServiceFactory[Req, Rsp]]
    Attributes
    protected
  26. def toString(): String
    Definition Classes
    AnyRef → Any
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. def withBoundStack(stack: Stack[ServiceFactory[Req, Rsp]]): This
    Definition Classes
    StdStackRouterStackRouter
  31. def withClientStack(stack: Stack[ServiceFactory[Req, Rsp]]): This
    Definition Classes
    StdStackRouterStackRouter
  32. def withParams(params: Params): This

    Creates a new StackClient with params used to configure this StackClient's stack.

    Creates a new StackClient with params used to configure this StackClient's stack.

    Definition Classes
    StdStackRouterStackRouter → Parameterized
  33. def withPathStack(stack: Stack[ServiceFactory[Req, Rsp]]): This
    Definition Classes
    StdStackRouterStackRouter

Inherited from StackRouter[Req, Rsp]

Inherited from Parameterized[StackRouter[Req, Rsp]]

Inherited from Router[Req, Rsp]

Inherited from AnyRef

Inherited from Any

Ungrouped