package prefetcher
- Alphabetic
- By Inheritance
- prefetcher
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- class LivePrefetchingSupplier[T] extends PrefetchingSupplier[T]
Concrete implementation for the PrefetchingSupplier trait.
Concrete implementation for the PrefetchingSupplier trait. Should be used most of the time.
- T
the type of the pre-fetched value
- implicit class MapLookupHelper[K, V] extends AnyRef
Implicit class for looking up elements in a pre-fetched map.
Implicit class for looking up elements in a pre-fetched map.
Allows returning a failed ZIO if the element cannot be found.
- K
key type
- V
value type
- final case class NotFound(message: String, cause: Option[NotFound] = None) extends Exception with Product with Serializable
Conveys the fact that a lookup failed.
Conveys the fact that a lookup failed.
- message
details about the failed lookup
- cause
when failing to look up a set of keys, contains the error for the first key that was not found.
- implicit class PrefetcherLookupHelper[K, N, V] extends AnyRef
Implicit class for easing lookups in prefetchers that contain nested maps.
Implicit class for easing lookups in prefetchers that contain nested maps.
- K
outer key type
- N
nested key type
- V
value type
- trait PrefetchingSupplier[T] extends AnyRef
This class is akin to a Supplier[T] that will always have a T immediately available, while it is updated by a background job on a regular basis.
This class is akin to a Supplier[T] that will always have a T immediately available, while it is updated by a background job on a regular basis.
- T
the type of the pre-fetched value
- class StaticPrefetchingSupplier[T] extends PrefetchingSupplier[T]
Static implementation of the prefetching supplier trait.
Static implementation of the prefetching supplier trait.
Mostly useful for tests.
- T
the type of the pre-fetched value
Value Members
- object PrefetchingSupplier