c

com.daml.resources

AbstractResourceOwner

abstract class AbstractResourceOwner[Context, +A] extends AnyRef

A ResourceOwner of type A is can acquire a Resource of the same type and its operations are applied to the Resource after it has been acquired.

A

The Resource value type.

Self Type
AbstractResourceOwner[Context, A]
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AbstractResourceOwner
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AbstractResourceOwner()(implicit arg0: HasExecutionContext[Context])

Abstract Value Members

  1. abstract def acquire()(implicit context: Context): Resource[Context, A]

    Acquires the Resource.

    Acquires the Resource.

    context

    The acquisition context, including the asynchronous task execution engine.

    returns

    The acquired Resource.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. implicit def executionContext(implicit context: Context): ExecutionContext
    Attributes
    protected
  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. def flatMap[B](f: (A) ⇒ R[B]): R[B]

  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. def map[B](f: (A) ⇒ B): R[B]

    See also

    Resource.map

  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  19. def toString(): String
    Definition Classes
    AnyRef → Any
  20. def transform[B](f: (Try[A]) ⇒ Try[B]): R[B]

  21. def transformWith[B](f: (Try[A]) ⇒ R[B]): R[B]

  22. def use[T](behavior: (A) ⇒ Future[T])(implicit context: Context): Future[T]

    Acquire the Resource's value, use it asynchronously, and release it afterwards.

    Acquire the Resource's value, use it asynchronously, and release it afterwards.

    T

    The asynchronous computation's value type.

    behavior

    The asynchronous computation on the value.

    context

    The acquisition context, including the asynchronous task execution engine.

    returns

    The asynchronous computation's Future.

  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  26. def withFilter(p: (A) ⇒ Boolean): R[A]

Inherited from AnyRef

Inherited from Any

Ungrouped