Class ActorCreator<A>

Type Parameters:
A - The type of the concrete actor class.

public class ActorCreator<A> extends BaseActorCreator<ActorCreator<A>>
A helper to create java actor.
  • Constructor Details

  • Method Details

    • setJvmOptions

      public ActorCreator<A> setJvmOptions(List<String> jvmOptions)
      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

      public ActorHandle<A> remote()
      Create a java actor remotely and return a handle to the created actor.
      Returns:
      a handle to the created java actor.
    • setConcurrencyGroups

      public ActorCreator<A> setConcurrencyGroups(ConcurrencyGroup... groups)
      Set the concurrency groups for this actor to declare how to perform tasks concurrently.