Object/Class

monix.execution

Scheduler

Related Docs: class Scheduler | package execution

Permalink

object Scheduler extends SchedulerCompanionImpl

Linear Supertypes
SchedulerCompanionImpl, SchedulerCompanion, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Scheduler
  2. SchedulerCompanionImpl
  3. SchedulerCompanion
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. implicit final class Extensions extends AnyVal

    Permalink

    Utilities complementing the Scheduler interface.

  2. trait ImplicitsLike extends AnyRef

    Permalink
    Definition Classes
    SchedulerCompanion

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. object Implicits extends schedulers.SchedulerCompanionImpl.ImplicitsLike

    Permalink
    Definition Classes
    SchedulerCompanionImpl → SchedulerCompanion
  5. def apply(ec: ExecutionContext): Scheduler

    Permalink

    Scheduler builder - uses monix's default ScheduledExecutorService for handling the scheduling of tasks.

    Scheduler builder - uses monix's default ScheduledExecutorService for handling the scheduling of tasks.

    ec

    is the execution context in which all tasks will run.

    Definition Classes
    SchedulerCompanionImpl
  6. def apply(executor: ScheduledExecutorService, executionModel: ExecutionModel): Scheduler

    Permalink

    Scheduler builder that converts a Java ScheduledExecutorService into a scheduler.

    Scheduler builder that converts a Java ScheduledExecutorService into a scheduler.

    executor

    is the ScheduledExecutorService that handles the scheduling of tasks into the future. If not provided, an internal default will be used. You can also create one with java.util.concurrent.Executors.

    executionModel

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

    Definition Classes
    SchedulerCompanionImpl
  7. def apply(executor: ScheduledExecutorService): Scheduler

    Permalink

    Scheduler builder that converts a Java ScheduledExecutorService into a scheduler.

    Scheduler builder that converts a Java ScheduledExecutorService into a scheduler.

    executor

    is the ScheduledExecutorService that handles the scheduling of tasks into the future. If not provided, an internal default will be used. You can also create one with java.util.concurrent.Executors.

    Definition Classes
    SchedulerCompanionImpl
  8. def apply(executor: ScheduledExecutorService, r: UncaughtExceptionReporter, executionModel: ExecutionModel): Scheduler

    Permalink

    Scheduler builder that converts a Java ScheduledExecutorService into a scheduler.

    Scheduler builder that converts a Java ScheduledExecutorService into a scheduler.

    executor

    is the ScheduledExecutorService that handles the scheduling of tasks into the future. If not provided, an internal default will be used. You can also create one with java.util.concurrent.Executors.

    r

    is the UncaughtExceptionReporter that logs uncaught exceptions. Wrap the given ExecutionContext.reportFailure or use UncaughtExceptionReporter.LogExceptionsToStandardErr for the default.

    executionModel

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

    Definition Classes
    SchedulerCompanionImpl
  9. def apply(executor: ScheduledExecutorService, r: UncaughtExceptionReporter): Scheduler

    Permalink

    Scheduler builder that converts a Java ScheduledExecutorService into a scheduler.

    Scheduler builder that converts a Java ScheduledExecutorService into a scheduler.

    executor

    is the ScheduledExecutorService that handles the scheduling of tasks into the future. If not provided, an internal default will be used. You can also create one with java.util.concurrent.Executors.

    r

    is the UncaughtExceptionReporter that logs uncaught exceptions. Wrap the given ExecutionContext.reportFailure or use UncaughtExceptionReporter.LogExceptionsToStandardErr for the default.

    Definition Classes
    SchedulerCompanionImpl
  10. def apply(ec: ExecutionContext, r: UncaughtExceptionReporter, executionModel: ExecutionModel): Scheduler

    Permalink

    Scheduler builder .

    Scheduler builder .

    ec

    is the execution context in which all tasks will run. Use scala.concurrent.ExecutionContext.Implicits.global for the default.

    r

    is the UncaughtExceptionReporter that logs uncaught exceptions. Wrap the given ExecutionContext.reportFailure or use UncaughtExceptionReporter.LogExceptionsToStandardErr for the default.

    executionModel

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

    Definition Classes
    SchedulerCompanionImpl
  11. def apply(ec: ExecutionContext, r: UncaughtExceptionReporter): Scheduler

    Permalink

    Scheduler builder.

    Scheduler builder.

    ec

    is the execution context in which all tasks will run. Use scala.concurrent.ExecutionContext.Implicits.global for the default.

    r

    is the UncaughtExceptionReporter that logs uncaught exceptions. Wrap the given ExecutionContext.reportFailure or use UncaughtExceptionReporter.LogExceptionsToStandardErr for the default.

    Definition Classes
    SchedulerCompanionImpl
  12. def apply(executor: ScheduledExecutorService, ec: ExecutionContext): Scheduler

    Permalink

    Scheduler builder.

    Scheduler builder.

    executor

    is the ScheduledExecutorService that handles the scheduling of tasks into the future. If not provided, an internal default will be used. You can also create one with java.util.concurrent.Executors.

    ec

    is the execution context in which all tasks will run. Use scala.concurrent.ExecutionContext.Implicits.global for the default.

    Definition Classes
    SchedulerCompanionImpl
  13. def apply(executor: ScheduledExecutorService, ec: ExecutionContext, r: UncaughtExceptionReporter, executionModel: ExecutionModel): Scheduler

    Permalink

    Scheduler builder.

    Scheduler builder.

    executor

    is the ScheduledExecutorService that handles the scheduling of tasks into the future. If not provided, an internal default will be used. You can also create one with java.util.concurrent.Executors.

    ec

    is the execution context in which all tasks will run. Use scala.concurrent.ExecutionContext.Implicits.global for the default.

    r

    is the UncaughtExceptionReporter that logs uncaught exceptions. Wrap the given ExecutionContext.reportFailure or use UncaughtExceptionReporter.LogExceptionsToStandardErr for the default.

    executionModel

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

    Definition Classes
    SchedulerCompanionImpl
  14. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  15. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. def computation(parallelism: Int, r: UncaughtExceptionReporter = LogExceptionsToStandardErr, executionModel: ExecutionModel = ExecutionModel.Default): Scheduler

    Permalink

    Creates a Scheduler meant for computational heavy tasks.

    Creates a Scheduler meant for computational heavy tasks.

    Characteristics:

    - backed by Scala's ForkJoinPool for the task execution, in async mode - uses monix's default ScheduledExecutorService instance for scheduling - all created threads are daemonic - cooperates with Scala's BlockContext

    parallelism

    is the number of threads that can run in parallel

    r

    is the UncaughtExceptionReporter that logs uncaught exceptions. Wrap the given ExecutionContext.reportFailure or use UncaughtExceptionReporter.LogExceptionsToStandardErr for the default.

    executionModel

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

    Definition Classes
    SchedulerCompanionImpl
  17. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  19. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. def fixedPool(name: String, poolSize: Int, daemonic: Boolean = true, r: UncaughtExceptionReporter = LogExceptionsToStandardErr, executionModel: ExecutionModel = ExecutionModel.Default): Scheduler

    Permalink

    Builds a Scheduler with a fixed thread-pool.

    Builds a Scheduler with a fixed thread-pool.

    Characteristics:

    - backed by a fixed pool ScheduledExecutorService that takes care of both scheduling tasks in the future and of executing immediate tasks - does not cooperate with Scala's BlockingContext, so tasks should not block on the result of other tasks scheduled to run on this same thread

    name

    is the name of the created thread, for easy identification

    daemonic

    specifies whether the created thread should be daemonic

    r

    is the UncaughtExceptionReporter that logs uncaught exceptions.

    Definition Classes
    SchedulerCompanionImpl
  21. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  22. def global: Scheduler

    Permalink

    The explicit global Scheduler.

    The explicit global Scheduler. Invoke global when you want to provide the global Scheduler explicitly.

    The default Scheduler implementation is backed by a work-stealing thread pool, along with a single-threaded ScheduledExecutionContext that does the scheduling. By default, the thread pool uses a target number of worker threads equal to the number of available processors.

    returns

    the global Scheduler

    Definition Classes
    SchedulerCompanionImpl → SchedulerCompanion
  23. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  24. def io(name: String = "monix-io", daemonic: Boolean = true, r: UncaughtExceptionReporter = LogExceptionsToStandardErr, executionModel: ExecutionModel = ExecutionModel.Default): Scheduler

    Permalink

    Creates a Scheduler meant for blocking I/O tasks.

    Creates a Scheduler meant for blocking I/O tasks.

    Characteristics:

    - backed by a cached ThreadPool executor with 60 seconds of keep-alive - the maximum number of threads is unbounded, as recommended for blocking I/O - uses monix's default ScheduledExecutorService instance for scheduling - doesn't cooperate with Scala's BlockContext because it is unbounded

    name

    the created threads name prefix, for easy identification.

    daemonic

    specifies whether the created threads should be daemonic (non-daemonic threads are blocking the JVM process on exit).

    r

    is the UncaughtExceptionReporter that logs uncaught exceptions. Wrap the given ExecutionContext.reportFailure or use UncaughtExceptionReporter.LogExceptionsToStandardErr for the default.

    executionModel

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

    Definition Classes
    SchedulerCompanionImpl
  25. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  26. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  27. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  28. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  29. def singleThread(name: String, daemonic: Boolean = true, r: UncaughtExceptionReporter = LogExceptionsToStandardErr, executionModel: ExecutionModel = ExecutionModel.Default): Scheduler

    Permalink

    Builds a Scheduler that schedules and executes tasks on its own thread.

    Builds a Scheduler that schedules and executes tasks on its own thread.

    Characteristics:

    - backed by a single-threaded ScheduledExecutorService that takes care of both scheduling tasks in the future and of executing tasks - does not cooperate with Scala's BlockingContext, so tasks should not block on the result of other tasks scheduled to run on this same thread

    name

    is the name of the created thread, for easy identification

    daemonic

    specifies whether the created thread should be daemonic (non-daemonic threads are blocking the JVM process on exit)

    r

    is the UncaughtExceptionReporter that logs uncaught exceptions. Wrap the given ExecutionContext.reportFailure or use UncaughtExceptionReporter.LogExceptionsToStandardErr for the default.

    executionModel

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

    Definition Classes
    SchedulerCompanionImpl
  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  31. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  32. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from SchedulerCompanionImpl

Inherited from SchedulerCompanion

Inherited from AnyRef

Inherited from Any

Ungrouped