IJobHandler.java 608 B

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