Trait

io.buoyant.router

StdStackRouter

Related Doc: package router

Permalink

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]]

    Permalink
    Definition Classes
    StackRouter
  2. abstract def client: StackClient[Req, Rsp]

    Permalink

    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

    Permalink

    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]

    Permalink

    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

    Permalink

    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]]

    Permalink
    Definition Classes
    StackRouter

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def boundFiltered(f: Filter[Req, Rsp, Req, Rsp]): This

    Permalink

    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

    Permalink

    Prepend clientStack with the given filter.

    Prepend clientStack with the given filter.

    Definition Classes
    StdStackRouterStackRouter
  7. def clientStack: Stack[ServiceFactory[Req, Rsp]]

    Permalink
    Definition Classes
    StdStackRouterStackRouter
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def configured[P](psp: (P, Param[P])): This

    Permalink

    Java compat

    Java compat

    Definition Classes
    StdStackRouterStackRouter → Parameterized
  10. def configured[P](p: P)(implicit arg0: Param[P]): This

    Permalink

    Creates a new StackClient with parameter p.

    Creates a new StackClient with parameter p.

    Definition Classes
    StdStackRouterStackRouter → Parameterized
  11. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  13. def factory(): ServiceFactory[Req, Rsp]

    Permalink

    Create a new ServiceFactory that performs per-request routing.

    Create a new ServiceFactory that performs per-request routing.

    Definition Classes
    StdStackRouterRouter
  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  16. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. def pathFiltered(f: Filter[Req, Rsp, Req, Rsp]): This

    Permalink

    Prepend pathStack with the given filter.

    Prepend pathStack with the given filter.

    Definition Classes
    StdStackRouterStackRouter
  22. def router: Stackable[ServiceFactory[Req, Rsp]]

    Permalink

    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
  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. def toStackable(f: Filter[Req, Rsp, Req, Rsp]): Stackable[ServiceFactory[Req, Rsp]]

    Permalink
    Attributes
    protected
  25. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  26. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. def withBoundStack(stack: Stack[ServiceFactory[Req, Rsp]]): This

    Permalink
    Definition Classes
    StdStackRouterStackRouter
  30. def withClientStack(stack: Stack[ServiceFactory[Req, Rsp]]): This

    Permalink
    Definition Classes
    StdStackRouterStackRouter
  31. def withParams(params: Params): This

    Permalink

    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
  32. def withPathStack(stack: Stack[ServiceFactory[Req, Rsp]]): This

    Permalink
    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