Class

com.twitter.finagle.buoyant.DstBindingFactory

Cached

Related Doc: package DstBindingFactory

Permalink

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[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)(implicit timer: Timer = DefaultTimer.twitter)

    Permalink

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. def apply(dst: Dst, conn: ClientConnection): Future[Service[Req, Rsp]]

    Permalink
    Definition Classes
    CachedDstBindingFactory
  5. final def apply(dst: Dst): Future[Service[Req, Rsp]]

    Permalink
    Definition Classes
    DstBindingFactory
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def close(deadline: Time): Future[Unit]

    Permalink
    Definition Classes
    Cached → Closable
  9. def close(after: Duration): Future[Unit]

    Permalink
    Definition Classes
    Closable
  10. final def close(): Future[Unit]

    Permalink
    Definition Classes
    Closable
  11. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  20. def status: Status

    Permalink
    Definition Classes
    CachedDstBindingFactory
  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  22. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from DstBindingFactory[Req, Rsp]

Inherited from Closable

Inherited from AnyRef

Inherited from Any

Ungrouped