...
Interceptor must support ignite instance resource injection. Interceptor should support LifeCycleAwarethe injection of generic resources.
Interceptor only applies to user-defined service methods and does not apply to service lifecycle methods - init, execute andcancel,
...
If one service calls another, then by default the current call context will not be bound to the created proxy - the user must explicitly bind it. But Java service has a special ServiceResource annotation to inject another service proxy into the current service. If the user wants to redirect the current call context to this (injected) proxy, he can set the forwardCallerContext option of this annotation.
Interceptor can only throw unchecked exceptions.
Any runtime exception Exception thrown by the onInvoke/onComplete methods interceptor will be wrapped in a ServiceInterceptException.This exception will be into unchecked IgniteException and passed to the initiator (user) and to onError method of the interceptor.
If onInvoke throws an exception, then the service method will not be called.
The exception thrown by the onError method will be added to the main exception as suppressed.
...