RefreshOffsetEvent.java 876 B

12345678910111213141516171819202122232425262728293031323334
  1. package org.dbsyncer.parser.event;
  2. import org.dbsyncer.sdk.model.ChangedOffset;
  3. import org.springframework.context.ApplicationContext;
  4. import org.springframework.context.event.ApplicationContextEvent;
  5. import java.util.List;
  6. /**
  7. * 刷新偏移量事件
  8. *
  9. * @version 1.0.0
  10. * @Author AE86
  11. * @Date 2023-08-23 22:45
  12. */
  13. public final class RefreshOffsetEvent extends ApplicationContextEvent {
  14. private List<ChangedOffset> offsetList;
  15. /**
  16. * Create a new ContextStartedEvent.
  17. *
  18. * @param source the {@code ApplicationContext} that the event is raised for
  19. * (must not be {@code null})
  20. */
  21. public RefreshOffsetEvent(ApplicationContext source, List<ChangedOffset> offsetList) {
  22. super(source);
  23. this.offsetList = offsetList;
  24. }
  25. public List<ChangedOffset> getOffsetList() {
  26. return offsetList;
  27. }
  28. }