Class IJobHandler

java.lang.Object
com.xxl.job.core.handler.IJobHandler
Direct Known Subclasses:
GlueJobHandler, MethodJobHandler, ScriptJobHandler

public abstract class IJobHandler extends Object
job handler
Author:
xuxueli 2015-12-19 19:06:38
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    destroy handler, invoked when JobThread destroy
    abstract void
    execute handler, invoked when executor receives a scheduling request
    void
    init handler, invoked when JobThread init

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • IJobHandler

      public IJobHandler()
  • Method Details

    • execute

      public abstract void execute() throws Exception
      execute handler, invoked when executor receives a scheduling request
      Throws:
      Exception
    • init

      public void init() throws Exception
      init handler, invoked when JobThread init
      Throws:
      Exception
    • destroy

      public void destroy() throws Exception
      destroy handler, invoked when JobThread destroy
      Throws:
      Exception