mirror of
https://github.com/wassname/ray.git
synced 2026-07-14 11:17:54 +08:00
[xray] Implement Actor Reconstruction (#3332)
* Implement Actor Reconstruction * fix * fix actor handle __del__ * fix lint * add comment * Remove actorCreationDummyObjectId * address comments * fix * address comments * avoid copy * change log to debug * fix error name
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package org.ray.api.options;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
@@ -7,12 +8,24 @@ import java.util.Map;
|
||||
*/
|
||||
public class ActorCreationOptions extends BaseTaskOptions {
|
||||
|
||||
public static final int NO_RECONSTRUCTION = 0;
|
||||
public static final int INFINITE_RECONSTRUCTIONS = (int) Math.pow(2, 30);
|
||||
|
||||
public final int maxReconstructions;
|
||||
|
||||
public ActorCreationOptions() {
|
||||
super();
|
||||
this.maxReconstructions = NO_RECONSTRUCTION;
|
||||
}
|
||||
|
||||
public ActorCreationOptions(Map<String, Double> resources) {
|
||||
super(resources);
|
||||
this.maxReconstructions = NO_RECONSTRUCTION;
|
||||
}
|
||||
|
||||
|
||||
public ActorCreationOptions(Map<String, Double> resources, int maxReconstructions) {
|
||||
super(resources);
|
||||
this.maxReconstructions = maxReconstructions;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user