Packages

class Cached[-Req, +Rsp] extends DstBindingFactory[Req, Rsp]

Binds a Dst to a ServiceFactory.

Here, we're basically replicating the logic from Finagle's BindingFactory. This is done so we bind a destination before creating a client so that multiple requests to a single bound destination may share connection pools etc.

The logic has been changed to account for the way residuals play into naming. We use the helper classes Bound and BoundTree instead of Name.Bound and NameTree[Name.Bound] so that we can control when residual paths factor into caching.

Linear Supertypes
DstBindingFactory[Req, Rsp], Closable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Cached
  2. DstBindingFactory
  3. Closable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Cached(mkClient: (Bound) ⇒ ServiceFactory[Req, Rsp], pathMk: Mk[buoyant.Dst.Path, Req, Rsp] = Mk.identity[Dst.Path, Req, Rsp], boundMk: Mk[Bound, Req, Rsp] = Mk.identity[Dst.Bound, Req, Rsp], namer: NameInterpreter = DefaultInterpreter, statsReceiver: StatsReceiver = DefaultStatsReceiver, capacity: Capacity = Capacity.default, bindingTimeout: BindingTimeout = BindingTimeout.default, idleTtl: IdleTtl = IdleTtl.default)(implicit timer: Timer = DefaultTimer)

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. def apply(dst: buoyant.Dst.Path, conn: ClientConnection): Future[Service[Req, Rsp]]
    Definition Classes
    CachedDstBindingFactory
  5. final def apply(dst: buoyant.Dst.Path): Future[Service[Req, Rsp]]
    Definition Classes
    DstBindingFactory
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def close(deadline: Time): Future[Unit]
    Definition Classes
    Cached → Closable
  9. def close(after: Duration): Future[Unit]
    Definition Classes
    Closable
  10. final def close(): Future[Unit]
    Definition Classes
    Closable
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  20. def status: Open.type
    Definition Classes
    CachedDstBindingFactory
  21. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  22. def toString(): String
    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from DstBindingFactory[Req, Rsp]

Inherited from Closable

Inherited from AnyRef

Inherited from Any

Ungrouped