Package co.paralleluniverse.fibers
Class DefaultFiberScheduler
- java.lang.Object
-
- co.paralleluniverse.fibers.DefaultFiberScheduler
-
public class DefaultFiberScheduler extends java.lang.Object
The defaultFiberScheduler
used to schedule fibers that do not specify a particular scheduler. The properties of the default scheduler can be set with system properties:"co.paralleluniverse.fibers.DefaultFiberPool.parallelism"
- the number of threads in the default scheduler. By default, set equal to the number of available cores."co.paralleluniverse.fibers.DefaultFiberPool.exceptionHandler"
- the name of the class to be used as theUncaughtExceptionHandler
(an instance is constructed using a public default constructor)"co.paralleluniverse.fibers.DefaultFiberPool.monitor"
- themonitor type
used to monitor the underlyingForkJoinPool
. May be"JMX"
(the defualt),"METRICS"
, or"NONE"
."co.paralleluniverse.fibers.DefaultFiberPool.detailedFiberInfo"
- whether the fibers monitor collects detailed information about running fibers. May be"true"
or"false"
(the default)
-
-
Constructor Summary
Constructors Constructor Description DefaultFiberScheduler()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FiberScheduler
getInstance()
Returns the The defaultFiberScheduler
instance.
-
-
-
Method Detail
-
getInstance
public static FiberScheduler getInstance()
Returns the The defaultFiberScheduler
instance.- Returns:
- the default
FiberScheduler
instance.
-
-