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

com.alibaba.spring.boot.rsocket.broker.supporting.RSocketLocalService Maven / Gradle / Ivy

There is a newer version: 1.1.6
Show newest version
package com.alibaba.spring.boot.rsocket.broker.supporting;

import org.springframework.stereotype.Service;

import java.lang.annotation.*;

/**
 * rsocket local Service annotation for broker
 *
 * @author leijuan
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
@Service
public @interface RSocketLocalService {
    /**
     * service interface
     *
     * @return service interface
     */
    Class serviceInterface();

    /**
     * service name
     *
     * @return service name
     */
    String name() default "";

    /**
     * service version
     *
     * @return version
     */
    String version() default "";

    /**
     * encoding strategies
     *
     * @return encoding names
     */
    String[] encoding() default {"hessian", "json", "protobuf"};

    /**
     * service catalogs, almost like tags
     *
     * @return catalogs
     */
    String[] catalogs() default {};
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy