@Target(value=TYPE)
@Retention(value=RUNTIME)
@Documented
@Service
public @interface GrpcService
BindableService
(GrpcService-ImplBase).Modifier and Type | Optional Element and Description |
---|---|
java.lang.Class<? extends io.grpc.ServerInterceptor>[] |
interceptors
A list of
ServerInterceptor that should be applied to only this service. |
java.lang.Class<?> |
value
Deprecated.
|
@Deprecated public abstract java.lang.Class<?> value
public abstract java.lang.Class<? extends io.grpc.ServerInterceptor>[] interceptors
ServerInterceptor
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.