Class CustomScheduleConfiguration

java.lang.Object
com.bobocode.bring.core.bpp.impl.schedule.CustomScheduleConfiguration

public class CustomScheduleConfiguration extends Object
Configures a custom schedule with a specific core pool size for executing scheduled tasks. This class sets up a scheduled executor service with a defined core pool size and creates a custom scheduler based on this executor service.

Example usage: This configuration class can be used in applications requiring custom scheduling of tasks, providing a configured scheduled executor service and a custom scheduler instance.

Since:
1.0
Author:
Blyzhnytsia Team
  • Field Details

    • CORE_POOL_SIZE

      private static final int CORE_POOL_SIZE
      The core pool size for the scheduled executor service.
      See Also:
  • Constructor Details

    • CustomScheduleConfiguration

      public CustomScheduleConfiguration()
  • Method Details

    • scheduledExecutorService

      public ScheduledExecutorService scheduledExecutorService()
      Creates and returns a scheduled executor service with the defined core pool size.
      Returns:
      a ScheduledExecutorService instance
      See Also:
    • customScheduler

      public CustomScheduler customScheduler()
      Creates and returns a custom scheduler based on the scheduled executor service.
      Returns:
      a CustomScheduler instance using the configured executor service
      See Also: