p

fetch

package fetch

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

Type Members

  1. sealed trait BatchExecution extends Product with Serializable
  2. trait DataSource[I, A] extends AnyRef

    A DataSource is the recipe for fetching a certain identity I, which yields results of type A.

  3. trait DataSourceCache extends AnyRef

    A Cache trait so the users of the library can provide their own cache.

  4. final class DataSourceId extends AnyVal
  5. final class DataSourceName extends AnyVal
  6. final class DataSourceResult extends AnyVal
  7. trait Env extends AnyRef

    An environment that is passed along during the fetch rounds.

    An environment that is passed along during the fetch rounds. It holds the cache and the list of rounds that have been executed.

  8. sealed trait Fetch[F[_], A] extends AnyRef
  9. case class FetchEnv(roundsQ: Queue[Round] = Queue.empty) extends Env with Product with Serializable

    A concrete implementation of Env used in the default Fetch interpreter.

  10. sealed trait FetchException extends Throwable with NoStackTrace
  11. case class InMemoryCache(state: Map[(DataSourceName, DataSourceId), DataSourceResult]) extends DataSourceCache with Product with Serializable

    A cache that stores its elements in memory.

  12. final case class MissingIdentity[I, A](i: I, request: FetchQuery[I, A], environment: Env) extends Throwable with FetchException with Product with Serializable
  13. case class Request(request: FetchRequest, start: Long, end: Long) extends Product with Serializable

    A data structure that holds information about a request inside a fetch round.

  14. case class Round(queries: List[Request]) extends Product with Serializable

    A data structure that holds information about a fetch round.

  15. final case class UnhandledException(e: Throwable, environment: Env) extends Throwable with FetchException with Product with Serializable

Value Members

  1. implicit def fetchM[F[_]](implicit arg0: Monad[F]): Monad[[β$0$]Fetch[F, β$0$]]
  2. object Fetch
  3. object InMemoryCache extends Serializable
  4. object InParallel extends BatchExecution with Product with Serializable
  5. object Sequentially extends BatchExecution with Product with Serializable
  6. object syntax

Inherited from AnyRef

Inherited from Any

Ungrouped