ExecutorScheduler

Companion:
class
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply(service: ExecutorService, reporter: UncaughtExceptionReporter, executionModel: ExecutionModel, features: Features): ExecutorScheduler

Builder for an ExecutorScheduler, converting a Java ScheduledExecutorService.

Builder for an ExecutorScheduler, converting a Java ScheduledExecutorService.

Value parameters:
executionModel

is the preferred ExecutionModel, a guideline for run-loops and producers of data.

features

is the set of Features that the provided ExecutorService implements, see the documentation for Scheduler.features

reporter

is the UncaughtExceptionReporter that logs uncaught exceptions.

service

is the Java ScheduledExecutorService that will take care of scheduling and execution of all runnables.

def forkJoinDynamic(name: String, parallelism: Int, maxThreads: Int, daemonic: Boolean, reporter: UncaughtExceptionReporter, executionModel: ExecutionModel): ExecutorScheduler

Creates an ExecutorScheduler backed by a ForkJoinPool integrated with Scala's BlockContext.

Creates an ExecutorScheduler backed by a ForkJoinPool integrated with Scala's BlockContext.

def forkJoinStatic(name: String, parallelism: Int, daemonic: Boolean, reporter: UncaughtExceptionReporter, executionModel: ExecutionModel): ExecutorScheduler

Creates an ExecutorScheduler backed by a ForkJoinPool that isn't integrated with Scala's BlockContext.

Creates an ExecutorScheduler backed by a ForkJoinPool that isn't integrated with Scala's BlockContext.

Deprecated methods

@deprecated("Use the full-featured builder", "3.0.0")
def apply(service: ExecutorService, reporter: UncaughtExceptionReporter, executionModel: ExecutionModel): ExecutorScheduler

DEPRECATED — provided for binary backwards compatibility.

DEPRECATED — provided for binary backwards compatibility.

Use the full-featured builder.

Deprecated