← ZIO Query docs

CompletedRequestMap

zio.query.CompletedRequestMap
See theCompletedRequestMap companion object
sealed abstract class CompletedRequestMap

A CompletedRequestMap is a universally quantified mapping from requests of type Request[E, A] to results of type Exit[E, A] for all types E and A. The guarantee is that for any request of type Request[E, A], if there is a corresponding value in the map, that value is of type Exit[E, A]. This is used by the library to support data sources that return different result types for different requests while guaranteeing that results will be of the type requested.

Attributes

Companion
object
Source
CompletedRequestMap.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

final def contains(request: Any): Boolean

Returns whether a result exists for the specified request.

Returns whether a result exists for the specified request.

Attributes

Source
CompletedRequestMap.scala
final def isEmpty: Boolean

Whether the completed requests map is empty.

Whether the completed requests map is empty.

Attributes

Source
CompletedRequestMap.scala
final def lookup[E, A](request: Request[E, A]): Option[Exit[E, A]]

Retrieves the result of the specified request if it exists.

Retrieves the result of the specified request if it exists.

Attributes

Source
CompletedRequestMap.scala
final def requests: Set[Request[_, _]]

Collects all requests in a set.

Collects all requests in a set.

Attributes

Source
CompletedRequestMap.scala
final override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
Source
CompletedRequestMap.scala

Deprecated methods

Appends the specified result to the completed requests map.

Appends the specified result to the completed requests map.

Attributes

Deprecated
[Since version 0.7.0] Use one of the constructors in the companion object instead. See scaladoc for more info

Usage of this method is deprecated as it leads to performance degradation. Prefer using one of the constructors in the companion object instead

Source
CompletedRequestMap.scala
final def insert[E, A](request: Request[E, A], result: Exit[E, A]): CompletedRequestMap

Appends the specified result to the completed requests map.

Appends the specified result to the completed requests map.

Attributes

Deprecated
[Since version 0.7.0] Use one of the constructors in the companion object instead. See scaladoc for more info

Usage of this method is deprecated as it leads to performance degradation. Prefer using one of the constructors in the companion object instead

Source
CompletedRequestMap.scala
final def insertOption[E, A](request: Request[E, A], result: Exit[E, Option[A]]): CompletedRequestMap

Appends the specified optional result to the completed request map.

Appends the specified optional result to the completed request map.

Attributes

Deprecated
[Since version 0.7.0] Use one of the constructors in the companion object instead. See scaladoc for more info

Usage of this method is deprecated as it leads to performance degradation. Prefer using one of the constructors in the companion object instead

Source
CompletedRequestMap.scala