class BridgedThreadPoolScheduler extends Scheduler with ExecutorScheduler
A scheduler that bridges tasks submitted by external threads into local executor threads. All tasks submitted locally are executed on local threads.
Note: This scheduler expects to create executors with unbounded capacity.
Thus it does not expect and has undefined behavior for any
RejectedExecutionException
s other than those encountered after executor
shutdown.
- Alphabetic
- By Inheritance
- BridgedThreadPoolScheduler
- ExecutorScheduler
- Scheduler
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new BridgedThreadPoolScheduler(name: String)
- new BridgedThreadPoolScheduler(name: String, executorFactory: (ThreadFactory) => ExecutorService)
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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def blocking[T](f: => T)(implicit perm: CanAwait): T
- Definition Classes
- ExecutorScheduler
- 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.
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- val executor: ExecutorService
- Attributes
- protected[this]
- Definition Classes
- ExecutorScheduler
- val executorFactory: (ThreadFactory) => ExecutorService
- Definition Classes
- BridgedThreadPoolScheduler → ExecutorScheduler
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def flush(): Unit
Flush the schedule.
Flush the schedule. Returns when there is no more work to do.
- Definition Classes
- BridgedThreadPoolScheduler → ExecutorScheduler → Scheduler
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getExecutor: ExecutorService
- Definition Classes
- ExecutorScheduler
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val name: String
- Definition Classes
- BridgedThreadPoolScheduler → ExecutorScheduler
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def numDispatches: Long
- Definition Classes
- ExecutorScheduler
- def shutdown(): Unit
- Definition Classes
- ExecutorScheduler
- def submit(r: Runnable): Unit
Schedule
r
to be run at some time in the future.Schedule
r
to be run at some time in the future.- Definition Classes
- BridgedThreadPoolScheduler → ExecutorScheduler → Scheduler
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val threadFactory: ThreadFactory
- Attributes
- protected
- Definition Classes
- ExecutorScheduler
- val threadGroup: ThreadGroup
- Attributes
- protected
- Definition Classes
- ExecutorScheduler
- def threads(): Array[Thread]
- Attributes
- protected
- Definition Classes
- ExecutorScheduler
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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]) @native()