IJobHandler.java 574 B

123456789101112131415161718192021222324252627282930313233
  1. package com.xxl.job.client.handler;
  2. /**
  3. * remote job handler
  4. * @author xuxueli 2015-12-19 19:06:38
  5. */
  6. public abstract class IJobHandler extends HandlerRepository{
  7. /**
  8. * job handler <br><br>
  9. * the return Object will be and stored
  10. * @param param
  11. * @return
  12. * @throws Exception
  13. */
  14. public abstract JobHandleStatus handle(String... params) throws Exception;
  15. public enum JobHandleStatus{
  16. /**
  17. * handle success
  18. */
  19. SUCCESS,
  20. /**
  21. * handle fail
  22. */
  23. FAIL,
  24. /**
  25. * handle not found
  26. */
  27. NOT_FOUND;
  28. }
  29. }