org.apache.ignite.resources

## Annotation Type TaskSessionResource

-     @Documented
       @Retention(value=RUNTIME)
       @Target(value={METHOD,FIELD})
      public @interface TaskSessionResource

  Annotates a field or a setter method for injection of `ComputeTaskSession` resource. Task session can be injected into instances of following classes:

  Distributed Task Session can be injected into instances of following classes:

  - `ComputeTask`
  - `ComputeJob`

  Here is how injection would typically happen:

       public class MyGridJob implements ComputeJob {
            ...
            @TaskSessionResource
            private ComputeTaskSession taskSes;
            ...
        }

  or

       public class MyGridJob implements ComputeJob {
           ...
           private ComputeTaskSession taskSes;
           ...
           @TaskSessionResource
           public void setTaskSession(ComputeTaskSession taskSes) {
                this.taskSes = taskSes;
           }
           ...
       }

${current.year} Copyright © Apache Software Foundation
| Follow @ApacheIgnite
Ignite Database and Caching Platform | : ver. 2.15.0
Release Date | : April 25 2023