Package

ch.j3t

prefetcher

Permalink

package prefetcher

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. prefetcher
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. class LivePrefetchingSupplier[T] extends PrefetchingSupplier[T]

    Permalink

    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

  2. implicit class MapLookupHelper[K, V] extends AnyRef

    Permalink

    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

  3. final case class NotFound(message: String, cause: Option[NotFound] = None) extends Exception with Product with Serializable

    Permalink

    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.

  4. implicit class PrefetcherLookupHelper[K, N, V] extends AnyRef

    Permalink

    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

  5. trait PrefetchingSupplier[T] extends AnyRef

    Permalink

    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

  6. class StaticPrefetchingSupplier[T] extends PrefetchingSupplier[T]

    Permalink

    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

  1. object PrefetchingSupplier

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped