|
GridGain 3.6.0e
Enterprise Edition |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Documented
@Retention(value=RUNTIME)
@Target(value={METHOD,FIELD})
public @interface GridTaskSessionResource
Annotates a field or a setter method for injection of GridTaskSession resource.
Task session can be injected into instances of following classes:
Distributed Task Session can be injected into instances of following classes:
Here is how injection would typically happen:
public class MyGridJob implements GridJob {
...
@GridTaskSessionResource
private GridTaskSession taskSes;
...
}
or
public class MyGridJob implements GridJob {
...
private GridTaskSession taskSes;
...
@GridTaskSessionResource
public void setTaskSession(GridTaskSession taskSes) {
this.taskSes = taskSes;
}
...
}
| Wiki | |
| Forum |

|
GridGain 3.6.0e
Enterprise Edition |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
|
GridGain - Real Time Big Data
|
|
|