p
fetch
package fetch
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- fetch
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
- sealed trait BatchExecution extends Product with Serializable
-
trait
DataSource[I, A] extends AnyRef
A
DataSource
is the recipe for fetching a certain identityI
, which yields results of typeA
. -
trait
DataSourceCache extends AnyRef
A
Cache
trait so the users of the library can provide their own cache. - final class DataSourceId extends AnyVal
- final class DataSourceName extends AnyVal
- final class DataSourceResult extends AnyVal
-
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.
- sealed trait Fetch[F[_], A] extends AnyRef
-
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. - sealed trait FetchException extends Throwable with NoStackTrace
-
case class
InMemoryCache(state: Map[(DataSourceName, DataSourceId), DataSourceResult]) extends DataSourceCache with Product with Serializable
A cache that stores its elements in memory.
- final case class MissingIdentity[I, A](i: I, request: FetchQuery[I, A], environment: Env) extends Throwable with FetchException with Product with Serializable
-
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.
-
case class
Round(queries: List[Request]) extends Product with Serializable
A data structure that holds information about a fetch round.
- final case class UnhandledException(e: Throwable, environment: Env) extends Throwable with FetchException with Product with Serializable
Value Members
- implicit def fetchM[F[_]](implicit arg0: Monad[F]): Monad[[β$0$]Fetch[F, β$0$]]
- object Fetch
- object InMemoryCache extends Serializable
- object InParallel extends BatchExecution with Product with Serializable
- object Sequentially extends BatchExecution with Product with Serializable
- object syntax