p
fetch
package fetch
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- fetch
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
- sealed trait BatchExecution extends Product with Serializable
- trait Data[I, A] extends AnyRef
Data
is a trait used to identify and optimize access to aDataSource
. - trait DataCache[F[_]] extends AnyRef
A
Cache
trait so the users of the library can provide their own cache. - trait DataSource[F[_], I, A] extends AnyRef
A
DataSource
is the recipe for fetching a certain identityI
, which yields results of typeA
performing an effect of typeF[_]
. - final class DataSourceId extends AnyVal
- final class DataSourceResult extends AnyVal
- sealed trait Fetch[F[_], A] extends AnyRef
- sealed trait FetchException extends Throwable with NoStackTrace
- case class FetchLog(q: Queue[Round] = Queue.empty) extends Log with Product with Serializable
A concrete implementation of
Log
used in Fetch. - case class InMemoryCache[F[_]](state: Map[(Data[Any, Any], DataSourceId), DataSourceResult])(implicit evidence$1: Monad[F]) extends DataCache[F] with Product with Serializable
A cache that stores its elements in memory.
- trait Log extends AnyRef
A log that is passed along during the fetch rounds to record a fetch execution.
A log that is passed along during the fetch rounds to record a fetch execution. It holds the a list of rounds that have been executed.
- final case class MissingIdentity[I, A](i: I, request: FetchQuery[I, A], log: Log) 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, log: Log) extends Throwable with FetchException with Product with Serializable
Value Members
- implicit def fetchM[F[_]](implicit arg0: Monad[F]): Monad[[β$0$]Fetch[F, β$0$]]
- def runCombinationResult[F[_]](comb: CombinationTailRec[F], status: FetchStatus)(implicit arg0: Monad[F]): F[Unit]
- object Data
- object DataSource
- object Fetch
- object InMemoryCache extends Serializable
- case object InParallel extends BatchExecution with Product with Serializable
- case object Sequentially extends BatchExecution with Product with Serializable
- object syntax