mirror of
https://github.com/wassname/ray.git
synced 2026-06-30 21:11:24 +08:00
[java] Support resources management in raylet mode. (#2606)
This commit is contained in:
committed by
Robert Nishihara
parent
4a7be6f46d
commit
244337d381
@@ -4,6 +4,7 @@ import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
import org.ray.util.ResourceItem;
|
||||
|
||||
/**
|
||||
* a ray remote function or class (as an actor).
|
||||
@@ -11,10 +12,9 @@ import java.lang.annotation.Target;
|
||||
@Target({ElementType.METHOD, ElementType.TYPE})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
public @interface RayRemote {
|
||||
|
||||
/**
|
||||
* whether to use external I/O pool to execute the function.
|
||||
* This is used for default resources.
|
||||
* @return The resources of the method or actor need.
|
||||
*/
|
||||
boolean externalIo() default false;
|
||||
|
||||
ResourceItem[] resources() default {@ResourceItem()};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user