package
iface
Type Members
-
case class
CapacityConfig(bindingCacheActive: Option[Int] = None, bindingCacheInactive: Option[Int] = None, addrCacheActive: Option[Int] = None, addrCacheInactive: Option[Int] = None) extends Product with Serializable
-
-
class
ObserverCache[K <: AnyRef, T] extends AnyRef
-
case class
ThriftInterpreterInterfaceConfig(retryBaseSecs: Option[Int] = None, retryJitterSecs: Option[Int] = None, cache: Option[CapacityConfig] = None, tls: Option[TlsServerConfig] = None) extends InterpreterInterfaceConfig with Product with Serializable
-
-
class
ThriftNamerClient extends NameInterpreter with Delegator
-
-
case class
ThriftServable(addr: InetSocketAddress, iface: ThriftService, params: Params) extends Servable with Product with Serializable
-
case class
TlsServerConfig(certPath: String, keyPath: String) extends Product with Serializable
Value Members
-
-
A cache for Observer[T]. ObserverCache contains two levels of caching: active and inactive.
The active cache is for Observers that have current outstanding requests against them. Therefore, any Observer in the active cache must not be closed as this would cause the outstanding requests to hang.
The inactive cache is for Observers without outstanding requests against them. These Observers are kept open while in the inactive cache in case they receive a request and need to be moved to the active cache. The inactive cache has LRU eviction and Observers are closed upon eviction. Since Observers in the inactive cache have no outstanding requests against them, this is safe to do.
When get is called, the Observer for that key is moved to the active cache if it exists or created and placed in the active cache if it does not exist. When the value of an Observer in the active cache changes, the Observer is moved to the inactive cache. If the inactive cache is full at that time, an older inactive Observer will be evicted.