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. Protected

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(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. implicit def executionContext(implicit context: Context): ExecutionContext
    Attributes
    protected
  9. def flatMap[B](f: (A) => R[B]): R[B]

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

    See also

    Resource.map

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

  20. def transformWith[B](f: (Try[A]) => R[B]): R[B]

  21. 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.

  22. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  23. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  24. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. def withFilter(p: (A) => Boolean): R[A]

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped