@Target(value=TYPE) @Retention(value=RUNTIME) @Documented @Service public @interface GrpcService
BindableService
(GrpcService-ImplBase).
Note: These annotation allows the specification of custom interceptors. These will be appended to the global
interceptors and applied using ServerInterceptors.interceptForward(BindableService, ServerInterceptor...)
.
Modifier and Type | Optional Element and Description |
---|---|
String[] |
interceptorNames
A list of
ServerInterceptor beans that should be applied to only this service. |
Class<? extends ServerInterceptor>[] |
interceptors
A list of
ServerInterceptor classes that should be applied to only this service. |
boolean |
sortInterceptors
Whether the custom interceptors should be mixed with the global interceptors and sorted afterwards.
|
public abstract Class<? extends ServerInterceptor>[] interceptors
ServerInterceptor
classes that should be applied to only this service. If a bean of the given
type exists, it will be used; otherwise a new instance of that class will be created via no-args constructor.
Note: Please read the javadocs regarding the ordering of interceptors.
public abstract String[] interceptorNames
ServerInterceptor
beans that should be applied to only this service.
Note: Please read the javadocs regarding the ordering of interceptors.
public abstract boolean sortInterceptors