c

com.twitter.concurrent

ThreadPoolScheduler

class ThreadPoolScheduler extends Scheduler with ExecutorScheduler

A scheduler that dispatches directly to an underlying Java cached threadpool executor.

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ThreadPoolScheduler
  2. ExecutorScheduler
  3. Scheduler
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ThreadPoolScheduler(name: String)
  2. new ThreadPoolScheduler(name: String, executorFactory: (ThreadFactory) => ExecutorService)

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 blocking[T](f: => T)(implicit perm: CanAwait): T
    Definition Classes
    ExecutorScheduler
  6. def blockingTimeNanos: Long

    Total time spent doing blocking operations, in nanoseconds.

    Total time spent doing blocking operations, in nanoseconds.

    This should only include time spent on threads where com.twitter.util.Awaitable.CanAwait.trackElapsedBlocking returns true.

    returns

    -1 if the Scheduler does not support tracking this.

    Definition Classes
    Scheduler
    Note

    this does not include time spent doing blocking code outside of Scheduler.blocking. For example, Future(someSlowSynchronousIO) would not be accounted for here.

  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. val executor: ExecutorService
    Attributes
    protected[this]
    Definition Classes
    ExecutorScheduler
  11. val executorFactory: (ThreadFactory) => ExecutorService
  12. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  13. def flush(): Unit
    Definition Classes
    ExecutorScheduler
  14. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. def getExecutor: ExecutorService
    Definition Classes
    ExecutorScheduler
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. val name: String
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. def numDispatches: Long
    Definition Classes
    ExecutorScheduler
  23. def shutdown(): Unit
    Definition Classes
    ExecutorScheduler
  24. def submit(r: Runnable): Unit
    Definition Classes
    ExecutorScheduler
  25. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  26. val threadFactory: ThreadFactory
    Attributes
    protected
    Definition Classes
    ExecutorScheduler
  27. val threadGroup: ThreadGroup
    Attributes
    protected
    Definition Classes
    ExecutorScheduler
  28. def threads(): Array[Thread]
    Attributes
    protected
    Definition Classes
    ExecutorScheduler
  29. def toString(): String
    Definition Classes
    AnyRef → Any
  30. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  31. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  32. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from ExecutorScheduler

Inherited from Scheduler

Inherited from AnyRef

Inherited from Any

Ungrouped