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