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

io.github.xuanyangyang.rpc.spring.service.RPCService Maven / Gradle / Ivy

The newest version!
package io.github.xuanyangyang.rpc.spring.service;

import org.springframework.stereotype.Service;

import java.lang.annotation.*;

/**
 * rpc服务
 *
 * @author xuanyangyang
 * @since 2020/11/1 00:00
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Service
public @interface RPCService {
    /**
     * @return 服务名
     */
    String name() default "";

    /**
     * @return 服务版本
     */
    int version() default 0;

    /**
     * @return 协议ID
     */
    short protocolId() default 0;

    /**
     * @return 编解码器ID
     */
    short codecId() default 0;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy