Package

diode

data

Permalink

package data

Visibility
  1. Public
  2. All

Type Members

  1. trait AsyncAction[A, P <: AsyncAction[A, P]] extends AnyRef

    Permalink

    Base trait for asynchronous actions.

    Base trait for asynchronous actions. Provides support for handling of multi-state actions. Implementation classes must implement result, next and state functions. If you are using Pot, consider using PotAction instead.

    Example:

    case class MyAction(
      state: PotState = PotState.PotEmpty,
      result: Try[String] = Failure(new AsyncAction.PendingException)) extends AsyncAction[Int, MyAction] {
      def next(newState: PotState, newValue: Try[String]) = MyAction(newState, newValue)
    }
    A

    Type of action result

    P

    Type of the actual action class

  2. trait AsyncActionRetriable[A, P <: AsyncActionRetriable[A, P]] extends AsyncAction[A, P]

    Permalink

    A retriable version of AsyncAction.

    A retriable version of AsyncAction. Implementation must define a retryPolicy, which is also passed on in the next method.

    A

    Type of action result

    P

    Type of the actual action class

  3. final case class Failed(exception: Throwable) extends Pot[Nothing] with FailedBase with Product with Serializable

    Permalink
  4. final case class FailedStale[+A](x: A, exception: Throwable) extends Pot[A] with FailedBase with Product with Serializable

    Permalink
  5. trait Fetch[K] extends AnyRef

    Permalink

    Provides methods to asynchronously fetch value(s) based on key(s)

  6. final case class Pending(startTime: Long = new Date().getTime) extends Pot[Nothing] with PendingBase with Product with Serializable

    Permalink
  7. final case class PendingStale[+A](x: A, startTime: Long = new Date().getTime) extends Pot[A] with PendingBase with Product with Serializable

    Permalink
  8. sealed abstract class Pot[+A] extends Product with Serializable

    Permalink

    Represents a potential value that may be in different states.

  9. trait PotAction[A, P <: PotAction[A, P]] extends AsyncAction[A, P]

    Permalink

    An async action handler for Pot values.

    An async action handler for Pot values. Combines the state and result of AsyncAction into a single Pot value.

    A

    Type of action result

    P

    Type of the actual action class

    See also

    AsyncAction

  10. trait PotActionRetriable[A, P <: PotActionRetriable[A, P]] extends PotAction[A, P] with AsyncActionRetriable[A, P]

    Permalink

    A retriable async action handler for Pot values.

    A retriable async action handler for Pot values. Combines the state and result of AsyncAction into a single Pot value.

    A

    Type of action result

    P

    Type of the actual action class

  11. trait PotCollection[K, V] extends AnyRef

    Permalink

    Trait defining common functionality for all potential collections.

    Trait defining common functionality for all potential collections. All values inside the collection are wrapped in Pot[V]

    K

    Type of the key

    V

    Type of the potential value

  12. class PotMap[K, V] extends PotCollection[K, V]

    Permalink
  13. sealed trait PotState extends AnyRef

    Permalink
  14. class PotStream[K, V] extends AnyRef

    Permalink
  15. class PotVector[V] extends PotCollection[Int, V]

    Permalink
  16. final case class Ready[+A](x: A) extends Pot[A] with Product with Serializable

    Permalink
  17. class RefTo[V] extends AnyRef

    Permalink

    Provides a reference to a value elsewhere in the model.

  18. final case class StreamValue[K, V](key: K, value: V, stream: PotStream[K, V], prevKey: Option[K] = None, nextKey: Option[K] = None) extends Product with Serializable

    Permalink

Value Members

  1. object AsyncAction

    Permalink
  2. object AsyncActionRetriable

    Permalink
  3. object Empty extends Pot[Nothing] with Product with Serializable

    Permalink
  4. object Pot extends Serializable

    Permalink
  5. object PotAction

    Permalink
  6. object PotActionRetriable

    Permalink
  7. object PotMap

    Permalink
  8. object PotState

    Permalink
  9. object PotStream

    Permalink
  10. object PotVector

    Permalink
  11. object RefTo

    Permalink
  12. object Unavailable extends Pot[Nothing] with Product with Serializable

    Permalink

Ungrouped