net.dongliu.prettypb.runtime.include.ProtoService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of prettypb-include Show documentation
Show all versions of prettypb-include Show documentation
necessary lib for proto beans compile
The newest version!
package net.dongliu.prettypb.runtime.include;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* used to mark a interface as proto type
*
* @author Dong Liu
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface ProtoService {
/**
* the proto service name
* @return
*/
String name();
/**
* the proto package
*/
String protoPackage() default "";
/**
* if this service api support async callback
* @return
*/
boolean async() default false;
}