Translation Quartz.net Framework Tutorial (Chinese Version) 2.2.x lesson scheduling Listener

Source: Internet
Author: User

Eighth Lesson Dispatch Listener

The dispatch listener and trigger listener are very similar to trigger listeners and job task listeners, except that the dispatch listener receives notification events within the scheduler and does not need to correlate specific triggers or job task events.

Events related to scheduling listeners, adding job tasks/triggers, removal of job tasks/triggers, Critical scheduler errors, scheduler shutdown, etc.

The Ischedulerlistener Interface

 Public Interfaceischedulerlistener{voidjobscheduled (Trigger Trigger); voidJobunscheduled (stringTriggername,stringTriggergroup); voidtriggerfinalized (Trigger Trigger); voidTriggerspaused (stringTriggername,stringTriggergroup); voidTriggersresumed (stringTriggername,stringTriggergroup); voidJobspaused (stringJobName,stringJobgroup); voidJobsresumed (stringJobName,stringJobgroup); voidSchedulererror (stringmsg, schedulerexception cause); voidSchedulershutdown ();} 

The dispatch listener registers with the listener manager of the scheduler, and the dispatch listener can actually be any object that implements the Ischedulerlistener interface. interface.

Add a dispatch listener

Scheduler. Listenermanager.addschedulerlistener (Myschedlistener);

To remove a dispatch listener

Scheduler. Listenermanager.removeschedulerlistener (Myschedlistener);

Translation Quartz.net Framework Tutorial (Chinese Version) 2.2.x lesson scheduling Listener

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.