class SparkThreadLocalForwardingThreadPoolExecutor extends ThreadPoolExecutor
Implementation of ThreadPoolExecutor that captures the Spark ThreadLocals present at submit time and inserts them into the thread before executing the provided runnable.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- SparkThreadLocalForwardingThreadPoolExecutor
- ThreadPoolExecutor
- AbstractExecutorService
- ExecutorService
- Executor
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new SparkThreadLocalForwardingThreadPoolExecutor(corePoolSize: Int, maximumPoolSize: Int, keepAliveTime: Long, unit: TimeUnit, workQueue: BlockingQueue[Runnable], threadFactory: ThreadFactory, rejectedExecutionHandler: RejectedExecutionHandler = new ThreadPoolExecutor.AbortPolicy)
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
afterExecute(arg0: Runnable, arg1: Throwable): Unit
- Attributes
- protected[concurrent]
- Definition Classes
- ThreadPoolExecutor
-
def
allowCoreThreadTimeOut(arg0: Boolean): Unit
- Definition Classes
- ThreadPoolExecutor
-
def
allowsCoreThreadTimeOut(): Boolean
- Definition Classes
- ThreadPoolExecutor
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
awaitTermination(arg0: Long, arg1: TimeUnit): Boolean
- Definition Classes
- ThreadPoolExecutor → ExecutorService
- Annotations
- @throws( ... )
-
def
beforeExecute(arg0: Thread, arg1: Runnable): Unit
- Attributes
- protected[concurrent]
- Definition Classes
- ThreadPoolExecutor
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
execute(command: Runnable): Unit
- Definition Classes
- SparkThreadLocalForwardingThreadPoolExecutor → ThreadPoolExecutor → Executor
-
def
finalize(): Unit
- Attributes
- protected[concurrent]
- Definition Classes
- ThreadPoolExecutor → AnyRef
-
def
getActiveCount(): Int
- Definition Classes
- ThreadPoolExecutor
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getCompletedTaskCount(): Long
- Definition Classes
- ThreadPoolExecutor
-
def
getCorePoolSize(): Int
- Definition Classes
- ThreadPoolExecutor
-
def
getKeepAliveTime(arg0: TimeUnit): Long
- Definition Classes
- ThreadPoolExecutor
-
def
getLargestPoolSize(): Int
- Definition Classes
- ThreadPoolExecutor
-
def
getMaximumPoolSize(): Int
- Definition Classes
- ThreadPoolExecutor
-
def
getPoolSize(): Int
- Definition Classes
- ThreadPoolExecutor
-
def
getQueue(): BlockingQueue[Runnable]
- Definition Classes
- ThreadPoolExecutor
-
def
getRejectedExecutionHandler(): RejectedExecutionHandler
- Definition Classes
- ThreadPoolExecutor
-
def
getTaskCount(): Long
- Definition Classes
- ThreadPoolExecutor
-
def
getThreadFactory(): ThreadFactory
- Definition Classes
- ThreadPoolExecutor
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
invokeAll[T](arg0: Collection[_ <: Callable[T]], arg1: Long, arg2: TimeUnit): List[Future[T]]
- Definition Classes
- AbstractExecutorService → ExecutorService
- Annotations
- @throws( ... )
-
def
invokeAll[T](arg0: Collection[_ <: Callable[T]]): List[Future[T]]
- Definition Classes
- AbstractExecutorService → ExecutorService
- Annotations
- @throws( ... )
-
def
invokeAny[T](arg0: Collection[_ <: Callable[T]], arg1: Long, arg2: TimeUnit): T
- Definition Classes
- AbstractExecutorService → ExecutorService
- Annotations
- @throws( ... ) @throws( ... ) @throws( ... )
-
def
invokeAny[T](arg0: Collection[_ <: Callable[T]]): T
- Definition Classes
- AbstractExecutorService → ExecutorService
- Annotations
- @throws( ... ) @throws( ... )
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isShutdown(): Boolean
- Definition Classes
- ThreadPoolExecutor → ExecutorService
-
def
isTerminated(): Boolean
- Definition Classes
- ThreadPoolExecutor → ExecutorService
-
def
isTerminating(): Boolean
- Definition Classes
- ThreadPoolExecutor
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
newTaskFor[T](arg0: Callable[T]): RunnableFuture[T]
- Attributes
- protected[concurrent]
- Definition Classes
- AbstractExecutorService
-
def
newTaskFor[T](arg0: Runnable, arg1: T): RunnableFuture[T]
- Attributes
- protected[concurrent]
- Definition Classes
- AbstractExecutorService
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
prestartAllCoreThreads(): Int
- Definition Classes
- ThreadPoolExecutor
-
def
prestartCoreThread(): Boolean
- Definition Classes
- ThreadPoolExecutor
-
def
purge(): Unit
- Definition Classes
- ThreadPoolExecutor
-
def
remove(arg0: Runnable): Boolean
- Definition Classes
- ThreadPoolExecutor
-
def
setCorePoolSize(arg0: Int): Unit
- Definition Classes
- ThreadPoolExecutor
-
def
setKeepAliveTime(arg0: Long, arg1: TimeUnit): Unit
- Definition Classes
- ThreadPoolExecutor
-
def
setMaximumPoolSize(arg0: Int): Unit
- Definition Classes
- ThreadPoolExecutor
-
def
setRejectedExecutionHandler(arg0: RejectedExecutionHandler): Unit
- Definition Classes
- ThreadPoolExecutor
-
def
setThreadFactory(arg0: ThreadFactory): Unit
- Definition Classes
- ThreadPoolExecutor
-
def
shutdown(): Unit
- Definition Classes
- ThreadPoolExecutor → ExecutorService
-
def
shutdownNow(): List[Runnable]
- Definition Classes
- ThreadPoolExecutor → ExecutorService
-
def
submit[T](arg0: Callable[T]): Future[T]
- Definition Classes
- AbstractExecutorService → ExecutorService
-
def
submit[T](arg0: Runnable, arg1: T): Future[T]
- Definition Classes
- AbstractExecutorService → ExecutorService
-
def
submit(arg0: Runnable): Future[_]
- Definition Classes
- AbstractExecutorService → ExecutorService
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
terminated(): Unit
- Attributes
- protected[concurrent]
- Definition Classes
- ThreadPoolExecutor
-
def
toString(): String
- Definition Classes
- ThreadPoolExecutor → AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()