object ExecutorServiceManager
manages executor instantiation, provides factory methods for various executors
- Alphabetic
- By Inheritance
- ExecutorServiceManager
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
lifecycle[T, V](nThreads: Int, params: Traversable[T])(f: (T) ⇒ V): Traversable[V]
creates an executor of nThread, submits f() x params.size and returns V x params.size as returned by f().
creates an executor of nThread, submits f() x params.size and returns V x params.size as returned by f(). It then shutsdown the executor.
f: T => V , each thread getting a different parameter from the traversable
If any of the invocation of f() fails, the executor will be shut down and no further threads will be submitted to it. The exception will propagate to the caller.
-
def
lifecycle[V](nThreads: Int, times: Int)(f: (Int) ⇒ V): Seq[V]
creates an executor of nThread, submits f() x times and returns V x times as returned by f().
creates an executor of nThread, submits f() x times and returns V x times as returned by f(). It then shutsdown the executor.
f: Int => V , where Int is the i-th execution, i is between [1..times] inclusive.
If any of the invocation of f() fails, the executor will be shut down and no further threads will be submitted to it. The exception will propagate to the caller.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def newCachedThreadPool(corePoolSize: Int, maximumPoolSize: Int, keepAliveTimeInSeconds: Int = 60, workQueue: BlockingQueue[Runnable] = new SynchronousQueue): Executor with Shutdown
- def newCachedThreadPoolCompletionService[V](corePoolSize: Int, maximumPoolSize: Int, keepAliveTimeInSeconds: Int = 60, workQueue: BlockingQueue[Runnable] = new SynchronousQueue): CompletionExecutor[V]
- def newFixedThreadPool(nThreads: Int): Executor with Shutdown
- def newFixedThreadPoolCompletionService[V](nThreads: Int): CompletionExecutor[V]
- def newScheduledThreadPool(corePoolSize: Int): Executor with Shutdown with Scheduling
- def newScheduledThreadPool(corePoolSize: Int, errorLogger: (Throwable) ⇒ Unit): Executor with Shutdown with Scheduling
- def newSingleThreadExecutor: Executor with Shutdown
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- 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( ... )
- def wrap(executor: ExecutorService): Executor with Shutdown