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

com.github.netty.springboot.NettyRpcClient Maven / Gradle / Ivy

The newest version!
package com.github.netty.springboot;

import org.springframework.stereotype.Component;

import java.lang.annotation.*;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Documented
@Component
public @interface NettyRpcClient {
    /**
     * The serviceName is the same as serviceName
     * example value "service-provider"
     *
     * @return serviceName
     */
    String serviceName();

//    Class fallback() default void.class;

    /**
     * Timeout time (milliseconds)
     *
     * @return timeout
     */
    int timeout() default -1;

//    int retry() default -1;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy