ClosedEvent.java 698 B

12345678910111213141516171819202122232425262728293031
  1. package org.dbsyncer.common.event;
  2. import org.springframework.context.ApplicationContext;
  3. import org.springframework.context.event.ApplicationContextEvent;
  4. /**
  5. * 任务关闭事件
  6. *
  7. * @version 1.0.0
  8. * @Author AE86
  9. * @Date 2020-04-26 22:45
  10. */
  11. public class ClosedEvent extends ApplicationContextEvent {
  12. private String id;
  13. /**
  14. * Create a new ContextStartedEvent.
  15. *
  16. * @param source the {@code ApplicationContext} that the event is raised for
  17. * (must not be {@code null})
  18. */
  19. public ClosedEvent(ApplicationContext source, String id) {
  20. super(source);
  21. this.id = id;
  22. }
  23. public String getId() {
  24. return id;
  25. }
  26. }