trait Batched[-R, -A] extends DataSource[R, A]
A data source that executes requests that can be performed in parallel in batches but does not further optimize batches of requests that must be performed sequentially.
- Alphabetic
- By Inheritance
- Batched
- DataSource
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract val identifier: String
The data source's identifier.
The data source's identifier.
- Definition Classes
- DataSource
- abstract def run(requests: Chunk[A])(implicit trace: Trace): ZIO[R, Nothing, CompletedRequestMap]
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def @@[R1 <: R](aspect: DataSourceAspect[R1]): DataSource[R1, A]
Syntax for adding aspects.
Syntax for adding aspects.
- Definition Classes
- DataSource
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def batchN(n: Int): DataSource[R, A]
Returns a data source that executes at most
nrequests in parallel.Returns a data source that executes at most
nrequests in parallel.- Definition Classes
- DataSource
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- final def contramap[B](f: Described[(B) => A]): DataSource[R, B]
Returns a new data source that executes requests of type
Busing the specified function to transformBrequests into requests that this data source can execute.Returns a new data source that executes requests of type
Busing the specified function to transformBrequests into requests that this data source can execute.- Definition Classes
- DataSource
- final def contramapZIO[R1 <: R, B](f: Described[(B) => ZIO[R1, Nothing, A]]): DataSource[R1, B]
Returns a new data source that executes requests of type
Busing the specified effectual function to transformBrequests into requests that this data source can execute.Returns a new data source that executes requests of type
Busing the specified effectual function to transformBrequests into requests that this data source can execute.- Definition Classes
- DataSource
- final def eitherWith[R1 <: R, B, C](that: DataSource[R1, B])(f: Described[(C) => Either[A, B]]): DataSource[R1, C]
Returns a new data source that executes requests of type
Cusing the specified function to transformCrequests into requests that either this data source or that data source can execute.Returns a new data source that executes requests of type
Cusing the specified function to transformCrequests into requests that either this data source or that data source can execute.- Definition Classes
- DataSource
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def equals(that: Any): Boolean
- Definition Classes
- DataSource → AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def hashCode(): Int
- Definition Classes
- DataSource → AnyRef → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def provideEnvironment(r: Described[ZEnvironment[R]]): DataSource[Any, A]
Provides this data source with its required environment.
Provides this data source with its required environment.
- Definition Classes
- DataSource
- final def provideSomeEnvironment[R0](f: Described[(ZEnvironment[R0]) => ZEnvironment[R]]): DataSource[R0, A]
Provides this data source with part of its required environment.
Provides this data source with part of its required environment.
- Definition Classes
- DataSource
- final def race[R1 <: R, A1 <: A](that: DataSource[R1, A1]): DataSource[R1, A1]
Returns a new data source that executes requests by sending them to this data source and that data source, returning the results from the first data source to complete and safely interrupting the loser.
Returns a new data source that executes requests by sending them to this data source and that data source, returning the results from the first data source to complete and safely interrupting the loser.
- Definition Classes
- DataSource
- final def runAll(requests: Chunk[Chunk[A]])(implicit trace: Trace): ZIO[R, Nothing, CompletedRequestMap]
Execute a collection of requests.
Execute a collection of requests. The outer
Chunkrepresents batches of requests that must be performed sequentially. The innerChunkrepresents a batch of requests that can be performed in parallel.- Definition Classes
- Batched → DataSource
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def toString(): String
- Definition Classes
- DataSource → AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])