Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scheduler pattern #76

Open
iluwatar opened this issue Jun 23, 2015 · 11 comments
Open

Scheduler pattern #76

iluwatar opened this issue Jun 23, 2015 · 11 comments

Comments

@iluwatar
Copy link
Owner

iluwatar commented Jun 23, 2015

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.
@mikulucky
Copy link
Contributor

Can I take this one please.

@iluwatar
Copy link
Owner Author

iluwatar commented Feb 2, 2016

Please, go ahead @mikulucky 👍

@iluwatar
Copy link
Owner Author

@mikulucky are you still working on this?

@iluwatar
Copy link
Owner Author

This issue is free for taking again.

@mpodlodowski
Copy link

I'd like to take this one.

@iluwatar
Copy link
Owner Author

@mpodlodowski great, you're good to go!

@iluwatar
Copy link
Owner Author

@mpodlodowski are you still implementing this?

@iluwatar
Copy link
Owner Author

iluwatar commented Oct 5, 2019

This issue is free again

pratigya0 pushed a commit to pratigya0/java-design-patterns that referenced this issue Aug 3, 2023
@tiennm99
Copy link
Contributor

tiennm99 commented Sep 5, 2023

Can I take it @iluwatar?

Copy link

stale bot commented Nov 6, 2023

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 stale bot added the status: stale issues and pull requests that have not had recent interaction label Nov 6, 2023
@stale stale bot removed the status: stale issues and pull requests that have not had recent interaction label Mar 9, 2024
@iluwatar
Copy link
Owner Author

Updated task description

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

4 participants