12345678910111213141516171819202122232425262728293031323334 |
- package org.dbsyncer.parser.event;
- import org.dbsyncer.sdk.model.ChangedOffset;
- import org.springframework.context.ApplicationContext;
- import org.springframework.context.event.ApplicationContextEvent;
- import java.util.List;
- /**
- * 刷新偏移量事件
- *
- * @version 1.0.0
- * @Author AE86
- * @Date 2023-08-23 22:45
- */
- public final class RefreshOffsetEvent extends ApplicationContextEvent {
- private final ChangedOffset changedOffset;
- /**
- * Create a new ContextStartedEvent.
- *
- * @param source the {@code ApplicationContext} that the event is raised for
- * (must not be {@code null})
- */
- public RefreshOffsetEvent(ApplicationContext source, ChangedOffset changedOffset) {
- super(source);
- this.changedOffset = changedOffset;
- }
- public ChangedOffset getChangedOffset() {
- return changedOffset;
- }
- }
|