class ExecutorServiceResourceOwner[Context, T <: ExecutorService] extends AbstractResourceOwner[Context, T]
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ExecutorServiceResourceOwner
- AbstractResourceOwner
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new ExecutorServiceResourceOwner(acquireExecutorService: () => T, gracefulAwaitTerminationMillis: Long, forcefulAwaitTerminationMillis: Long)(implicit arg0: HasExecutionContext[Context])
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
- def acquire()(implicit context: Context): Resource[Context, T]
Acquires the Resource.
Acquires the Resource.
- context
The acquisition context, including the asynchronous task execution engine.
- returns
The acquired Resource.
- Definition Classes
- ExecutorServiceResourceOwner → AbstractResourceOwner
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- implicit def executionContext(implicit context: Context): ExecutionContext
- Attributes
- protected
- Definition Classes
- AbstractResourceOwner
- def flatMap[B](f: (T) => R[B]): R[B]
- Definition Classes
- AbstractResourceOwner
- See also
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def map[B](f: (T) => B): R[B]
- Definition Classes
- AbstractResourceOwner
- See also
- 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 synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def transform[B](f: (Try[T]) => Try[B]): R[B]
- Definition Classes
- AbstractResourceOwner
- See also
- def transformWith[B](f: (Try[T]) => R[B]): R[B]
- Definition Classes
- AbstractResourceOwner
- See also
- def use[T](behavior: (T) => 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.
- Definition Classes
- AbstractResourceOwner
- 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])
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def withFilter(p: (T) => Boolean): R[T]
- Definition Classes
- AbstractResourceOwner
- See also
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated @Deprecated
- Deprecated