提交 | 用户 | 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.DELETE})
|
|
18 |
public @interface CanalDeleteListener {
|
|
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 |
}
|