Metadata
Task Execution
Attribute Annotation | @TaskGigaSpace |
Description | This annotation injects a clustered proxy into the Task implementation. This is useful when the Task should access other partitions. |
Example:
public class MyTask implements Task<Integer> {
@TaskGigaSpace
private transient GigaSpace colocatedSpace;
private transient GigaSpace clusteredSpace;
public MyTask() {
}
....
}
Task Routing
Method Annotation | @SpaceRouting |
Description | This annotation selects the routing![]() ![]() |
Example:
public class MyTask implements Task<Integer> {
@SpaceRouting
public Integer routing() {
return this.value;
}
....
}