@Documented @Retention(value=RUNTIME) @Target(value={METHOD,FIELD}) public @interface JobContextResource
ComputeJobContext
instance.
It can be injected into grid jobs only.
Job context can be injected into instances of following classes:
Here is how injection would typically happen:
public class MyGridJob implements ComputeJob { ... @IgniteJobContextResource private ComputeJobContext jobCtx; ... }or
public class MyGridJob implements ComputeJob { ... private ComputeJobContext jobCtx; ... @JobContextResource public void setJobContext(ComputeJobContext jobCtx) { this.jobCtx = jobCtx; } ... }
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019