public class PyActorClass extends Object
example_package/
├──__init__.py
└──example_module.py
in example_module.py there is an actor class A.
\@ray.remote
class A(object):
def __init__(self, x):
self.x = x
we can create this Python actor from Java:
PyActorHandle actor = Ray.createActor(PyActorClass.of("example_package.example_module", "A"),
"the value for x");
public static PyActorClass of(String moduleName, String className)
moduleName - The full module name of this actor classclassName - The name of this actor classCopyright © 2022. All rights reserved.