Class FiberForkJoinScheduler

    • Constructor Summary

      Constructors 
      Constructor Description
      FiberForkJoinScheduler​(java.lang.String name, int parallelism)
      Creates a new fiber scheduler using a default UncaughtExceptionHandler and no monitoring.
      FiberForkJoinScheduler​(java.lang.String name, int parallelism, co.paralleluniverse.common.monitoring.MonitorType monitorType, boolean detailedInfo)
      Creates a new fiber scheduler using a default UncaughtExceptionHandler.
      FiberForkJoinScheduler​(java.lang.String name, int parallelism, java.lang.Thread.UncaughtExceptionHandler exceptionHandler, co.paralleluniverse.common.monitoring.MonitorType monitorType, boolean detailedInfo)
      Creates a new fiber scheduler.
    • Constructor Detail

      • FiberForkJoinScheduler

        public FiberForkJoinScheduler​(java.lang.String name,
                                      int parallelism,
                                      java.lang.Thread.UncaughtExceptionHandler exceptionHandler,
                                      co.paralleluniverse.common.monitoring.MonitorType monitorType,
                                      boolean detailedInfo)
        Creates a new fiber scheduler.
        Parameters:
        name - the scheuler's name. This name is used in naming the scheduler's threads.
        parallelism - the number of threads in the pool
        exceptionHandler - an UncaughtExceptionHandler to be used for exceptions thrown in fibers that aren't caught.
        monitorType - the MonitorType type to use for the ForkJoinPool.
        detailedInfo - whether detailed information about the fibers is collected by the fibers monitor.
      • FiberForkJoinScheduler

        public FiberForkJoinScheduler​(java.lang.String name,
                                      int parallelism,
                                      co.paralleluniverse.common.monitoring.MonitorType monitorType,
                                      boolean detailedInfo)
        Creates a new fiber scheduler using a default UncaughtExceptionHandler.
        Parameters:
        name - the scheuler's name. This name is used in naming the scheduler's threads.
        parallelism - the number of threads in the pool
        monitorType - the MonitorType type to use for the ForkJoinPool.
        detailedInfo - whether detailed information about the fibers is collected by the fibers monitor.
      • FiberForkJoinScheduler

        public FiberForkJoinScheduler​(java.lang.String name,
                                      int parallelism)
        Creates a new fiber scheduler using a default UncaughtExceptionHandler and no monitoring.
        Parameters:
        name - the scheuler's name. This name is used in naming the scheduler's threads.
        parallelism - the number of threads in the pool
    • Method Detail

      • getForkJoinPool

        public java.util.concurrent.ForkJoinPool getForkJoinPool()
      • isFiberThread

        public static boolean isFiberThread​(java.lang.Thread t)
      • onIdle

        protected void onIdle()