java-design-patterns icon indicating copy to clipboard operation
java-design-patterns copied to clipboard

Scheduler pattern

Open iluwatar opened this issue 10 years ago • 16 comments
trafficstars

Description

The Scheduler design pattern is a behavioral pattern used to manage the execution of tasks. This pattern is particularly useful in scenarios where tasks need to be executed at specific intervals or under specific conditions. The Scheduler pattern typically involves a scheduler component that manages task execution, a task component that defines the executable units of work, and a trigger or condition that initiates task execution.

Main elements of the Scheduler pattern:

  1. Scheduler: Manages the execution of tasks, determining when and how often they should run.
  2. Task: Represents the work to be performed, encapsulating the logic for execution.
  3. Trigger/Condition: Specifies the criteria or schedule for task execution, such as time intervals or specific events.
  4. Execution Context: Provides the environment in which tasks are executed, handling necessary resources and states.

References

Acceptance Criteria

  1. Implement the Scheduler component to manage and execute tasks based on defined triggers or conditions.
  2. Define and implement a Task interface that encapsulates the logic for various tasks.
  3. Create examples demonstrating the usage of the Scheduler pattern with different types of triggers/conditions and tasks.

iluwatar avatar Jun 23 '15 19:06 iluwatar

Can I take this one please.

mikulucky avatar Feb 02 '16 20:02 mikulucky

Please, go ahead @mikulucky :+1:

iluwatar avatar Feb 02 '16 21:02 iluwatar

@mikulucky are you still working on this?

iluwatar avatar Jul 14 '16 09:07 iluwatar

This issue is free for taking again.

iluwatar avatar Sep 25 '16 17:09 iluwatar

I'd like to take this one.

mpodlodowski avatar Nov 20 '16 23:11 mpodlodowski

@mpodlodowski great, you're good to go!

iluwatar avatar Nov 21 '16 05:11 iluwatar

@mpodlodowski are you still implementing this?

iluwatar avatar Dec 25 '17 10:12 iluwatar

This issue is free again

iluwatar avatar Oct 05 '19 15:10 iluwatar

Can I take it @iluwatar?

tiennm99 avatar Sep 05 '23 13:09 tiennm99

This issue has been automatically marked as stale because it has not had recent activity. The issue will be unassigned if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Nov 06 '23 22:11 stale[bot]

Updated task description

iluwatar avatar May 29 '24 16:05 iluwatar