class RoutingFactory[Req, Rsp] extends ServiceFactory[Req, Rsp]
A RoutingFactory is a ServiceFactory that, for each request, determines a routable name for the request, resolves it to a client, and dispatches the request to a downstream service.
getDst is responsible for determining the name (Path) of each
request.
A DstBindingFactory is used to obtain a client that serves each destination.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- RoutingFactory
- ServiceFactory
- Closable
- Function1
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new RoutingFactory(getDst: Identifier[Req], clientFactory: DstBindingFactory[Req, Rsp], label: String)
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
-
def
andThen[A](g: (Future[Service[Req, Rsp]]) ⇒ A): (ClientConnection) ⇒ A
- Definition Classes
- Function1
- Annotations
- @unspecialized()
-
def
apply(conn: ClientConnection): Future[Service[Req, Rsp]]
- Definition Classes
- RoutingFactory → ServiceFactory → Function1
-
final
def
apply(): Future[Service[Req, Rsp]]
- Definition Classes
- ServiceFactory
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
close(deadline: Time): Future[Unit]
- Definition Classes
- RoutingFactory → Closable
-
def
close(after: Duration): Future[Unit]
- Definition Classes
- Closable
-
final
def
close(): Future[Unit]
- Definition Classes
- Closable
-
def
compose[A](g: (A) ⇒ ClientConnection): (A) ⇒ Future[Service[Req, Rsp]]
- Definition Classes
- Function1
- Annotations
- @unspecialized()
-
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] )
-
def
flatMap[Req1, Rep1](f: (Service[Req, Rsp]) ⇒ Future[Service[Req1, Rep1]]): ServiceFactory[Req1, Rep1]
- Definition Classes
- ServiceFactory
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isAvailable: Boolean
- Definition Classes
- ServiceFactory
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
map[Req1, Rep1](f: (Service[Req, Rsp]) ⇒ Service[Req1, Rep1]): ServiceFactory[Req1, Rep1]
- Definition Classes
- ServiceFactory
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
status: Status
- Definition Classes
- RoutingFactory → ServiceFactory
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
toService: Service[Req, Rsp]
- Definition Classes
- ServiceFactory
-
def
toString(): String
- Definition Classes
- Function1 → 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( ... )