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

rpc.turbo.annotation.TurboFailover Maven / Gradle / Ivy

There is a newer version: 0.0.9
Show newest version
/**
 * 
 */
package rpc.turbo.annotation;

import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

/**
 * 远程调用失败时的回退实现,
* 松散约束可以不实现服务接口,只要方法签名一致就能自动匹配上,
* 优先于RPCService接口中的默认方法 * * @author Hank * */ @Documented @Retention(RUNTIME) @Target({ TYPE }) public @interface TurboFailover { /** * 服务接口 * * @return */ Class service(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy