TBImplEvent.java 759 B

123456789101112131415161718192021222324252627282930
  1. package com.malk.delegate.impl;
  2. import com.alibaba.fastjson.JSONObject;
  3. import com.malk.delegate.TBEvent;
  4. import lombok.SneakyThrows;
  5. import lombok.extern.slf4j.Slf4j;
  6. import org.springframework.scheduling.annotation.Async;
  7. import org.springframework.stereotype.Service;
  8. @Slf4j
  9. @Service
  10. public class TBImplEvent implements TBEvent {
  11. @Async
  12. @Override
  13. @SneakyThrows
  14. public void callBackTask(JSONObject eventJson) {
  15. String eventName = eventJson.getString("event");
  16. log.info("callBackTask: 未被代理");
  17. }
  18. @Async
  19. @Override
  20. @SneakyThrows
  21. public void callBackProject(JSONObject eventJson) {
  22. String eventName = eventJson.getString("event");
  23. log.info("callBackProject: 未被代理");
  24. }
  25. }