WangHan
2024-09-12 d5855a4926926698b740bc6c7ba489de47adb68b
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
package tech.powerjob.remote.framework.actor;
 
import java.lang.annotation.*;
 
/**
 * Handler
 *
 * @author tjq
 * @since 2022/12/31
 */
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE, ElementType.METHOD})
public @interface Handler {
 
    /**
     * handler path
     * @return handler path
     */
    String path();
 
    /**
     * 处理类型
     * @return 阻塞 or 非阻塞
     */
    ProcessType processType() default ProcessType.BLOCKING;
}