duxinglangzi
2022-09-06 ed3a1614384279b7d3a97e7411b649476a934ddb
提交 | 用户 | age
de8c2b 1 package com.duxinglangzi.canal.starter.annotation;
D 2
3
4 import com.alibaba.otter.canal.protocol.CanalEntry;
5 import org.springframework.core.annotation.AliasFor;
6
7 import java.lang.annotation.ElementType;
8 import java.lang.annotation.Retention;
9 import java.lang.annotation.RetentionPolicy;
10 import java.lang.annotation.Target;
11
12 /**
13  * @author wuqiong 2022/4/11
14  */
15 @Target(ElementType.METHOD)
16 @Retention(RetentionPolicy.RUNTIME)
17 @CanalListener(eventType = CanalEntry.EventType.UPDATE)
18 public @interface CanalUpdateListener {
19
20     @AliasFor(annotation = CanalListener.class)
21     String destination();
22
23     @AliasFor(annotation = CanalListener.class)
24     String database();
25
26     @AliasFor(annotation = CanalListener.class)
27     String[] table();
28
29 }