All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.zyy.common.annotation.Handle Maven / Gradle / Ivy

package com.zyy.common.annotation;


import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface Handle {
    /**
     * 是否void方法, 优先级大于result
     *
     * @return 将返回null值
     */
    boolean isVoid() default false;

    /**
     * 开启异步执行
     *
     * @return boolean
     */
    boolean sync() default true;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy