Class CustomScheduleConfiguration
java.lang.Object
com.bobocode.bring.core.bpp.impl.schedule.CustomScheduleConfiguration
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 Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
The core pool size for the scheduled executor service. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates and returns a custom scheduler based on the scheduled executor service.Creates and returns a scheduled executor service with the defined core pool size.
-
Field Details
-
CORE_POOL_SIZE
private static final int CORE_POOL_SIZEThe core pool size for the scheduled executor service.- See Also:
-
-
Constructor Details
-
CustomScheduleConfiguration
public CustomScheduleConfiguration()
-
-
Method Details
-
scheduledExecutorService
Creates and returns a scheduled executor service with the defined core pool size.- Returns:
- a ScheduledExecutorService instance
- See Also:
-
customScheduler
Creates and returns a custom scheduler based on the scheduled executor service.- Returns:
- a CustomScheduler instance using the configured executor service
- See Also:
-