object DstBindingFactory
- Alphabetic
- By Inheritance
- DstBindingFactory
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- case class BindingTimeout (timeout: Duration) extends Product with Serializable
-
class
Cached
[-Req, +Rsp] extends DstBindingFactory[Req, Rsp]
Binds a Dst to a ServiceFactory.
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.
-
case class
Capacity
(paths: Int, trees: Int, bounds: Int, clients: Int) extends Product with Serializable
The capacities for each layer of dst caching.
- case class IdleTtl (timeout: Duration) extends Product with Serializable
-
type
Mk[T, Req, Rsp] = (T, ServiceFactory[Req, Rsp]) ⇒ ServiceFactory[Req, Rsp]
A convenience type for a function that modifies (e.g.
A convenience type for a function that modifies (e.g. filters) a ServiceFactory using a T-typed value.
- case class Namer (interpreter: NameInterpreter) extends Product with Serializable
-
class
RefCounted
[Req, Rsp] extends AnyRef
Ensures that a DstBindignFactory is only closed when all users of the factory have closed it.
Ensures that a DstBindignFactory is only closed when all users of the factory have closed it.
Note that acquire() / close() are only expected to be called in the context of process configuration and not, for example, in the request serving path.
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
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] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- def refcount[Req, Rsp](underlying: DstBindingFactory[Req, Rsp]): RefCounted[Req, Rsp]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- 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( ... )
- implicit object BindingTimeout extends Param[BindingTimeout] with Serializable
- implicit object Capacity extends Param[Capacity] with Serializable
- implicit object IdleTtl extends Param[IdleTtl] with Serializable
- object Mk
- implicit object Namer extends Param[Namer] with Serializable