@Target(value=TYPE)
@Retention(value=RUNTIME)
@Documented
@Service
public @interface GrpcService
BindableService (GrpcService-ImplBase).| Modifier and Type | Optional Element and Description |
|---|---|
java.lang.String[] |
interceptorNames
A list of
ServerInterceptor beans that should be applied to only this service. |
java.lang.Class<? extends io.grpc.ServerInterceptor>[] |
interceptors
A list of
ServerInterceptor classes that should be applied to only this service. |
public abstract java.lang.Class<? extends io.grpc.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: These interceptors will be applied after the global interceptors. But the interceptors that were applied last, will be called first.
public abstract java.lang.String[] interceptorNames
ServerInterceptor beans that should be applied to only this service.
Note: These interceptors will be applied after the global interceptors and the interceptor classes. But the interceptors that were applied last, will be called first.