Package io.ray.api.call
Class ActorCreator<A>
- Type Parameters:
A- The type of the concrete actor class.
A helper to create java actor.
-
Field Summary
Fields inherited from class io.ray.api.call.BaseActorCreator
builder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionremote()Create a java actor remotely and return a handle to the created actor.setConcurrencyGroups(ConcurrencyGroup... groups)Set the concurrency groups for this actor to declare how to perform tasks concurrently.setJvmOptions(List<String> jvmOptions)Set the JVM options for the Java worker that this actor is running in.Methods inherited from class io.ray.api.call.BaseActorCreator
buildOptions, setGlobalName, setMaxConcurrency, setMaxRestarts, setName, setPlacementGroup, setResource, setResources
-
Constructor Details
-
ActorCreator
-
-
Method Details
-
setJvmOptions
Set the JVM options for the Java worker that this actor is running in.Note, if this is set, this actor won't share Java worker with other actors or tasks.
- Parameters:
jvmOptions- JVM options for the Java worker that this actor is running in.- Returns:
- self
- See Also:
ActorCreationOptions.Builder.setJvmOptions(List)
-
remote
Create a java actor remotely and return a handle to the created actor.- Returns:
- a handle to the created java actor.
-
setConcurrencyGroups
Set the concurrency groups for this actor to declare how to perform tasks concurrently.
-