Packages

c

com.twitter.util

ExecutorServiceFuturePool

class ExecutorServiceFuturePool extends FuturePool

A FuturePool implementation backed by an java.util.concurrent.ExecutorService.

If a piece of work has started, it cannot be cancelled and will not propagate cancellation unless interruptible is true. If you want to propagate cancellation, use an InterruptibleExecutorServiceFuturePool.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ExecutorServiceFuturePool
  2. FuturePool
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ExecutorServiceFuturePool(executor: ExecutorService)
  2. new ExecutorServiceFuturePool(executor: ExecutorService, interruptible: Boolean)
    Attributes
    protected[this]

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. def apply[T](f: => T): Future[T]

    Execute f, returning a Future that represents the outcome.

    Execute f, returning a Future that represents the outcome.

    Definition Classes
    ExecutorServiceFuturePoolFuturePool
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. val executor: ExecutorService
  10. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. val interruptible: Boolean
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  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. def numActiveTasks: Int

    The approximate number of tasks actively executing.

    The approximate number of tasks actively executing.

    returns

    -1 if this FuturePool implementation doesn't support this statistic.

    Definition Classes
    ExecutorServiceFuturePoolFuturePool
  19. def numCompletedTasks: Long

    The approximate number of tasks that have completed execution.

    The approximate number of tasks that have completed execution.

    returns

    -1 if this FuturePool implementation doesn't support this statistic.

    Definition Classes
    ExecutorServiceFuturePoolFuturePool
  20. def numPendingTasks: Long

    The approximate number of tasks that are pending (typically waiting in the queue).

    The approximate number of tasks that are pending (typically waiting in the queue).

    returns

    -1 if this FuturePool implementation doesn't support this statistic.

    Definition Classes
    ExecutorServiceFuturePoolFuturePool
  21. def poolSize: Int

    The approximate size of the pool.

    The approximate size of the pool.

    While this is implementation specific, this often represents the number of threads in the pool.

    returns

    -1 if this FuturePool implementation doesn't support this statistic.

    Definition Classes
    ExecutorServiceFuturePoolFuturePool
  22. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  23. def toString(): String
    Definition Classes
    ExecutorServiceFuturePool → AnyRef → Any
  24. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from FuturePool

Inherited from AnyRef

Inherited from Any

Ungrouped