Class SchedulerPoolFactory

java.lang.Object
io.reactivex.rxjava3.internal.schedulers.SchedulerPoolFactory

public final class SchedulerPoolFactory extends Object
Manages the creating of ScheduledExecutorServices and sets up purging.
  • Field Details

    • PURGE_ENABLED_KEY

      static final String PURGE_ENABLED_KEY
      See Also:
    • PURGE_ENABLED

      public static final boolean PURGE_ENABLED
  • Constructor Details

    • SchedulerPoolFactory

      private SchedulerPoolFactory()
      Utility class.
  • Method Details

    • getBooleanProperty

      static boolean getBooleanProperty(boolean enabled, String key, boolean defaultNotFound, boolean defaultNotEnabled, Function<String,String> propertyAccessor)
    • create

      public static ScheduledExecutorService create(ThreadFactory factory)
      Creates a ScheduledExecutorService with the given factory.
      Parameters:
      factory - the thread factory
      Returns:
      the ScheduledExecutorService