Class ActorSystem.Builder

java.lang.Object
com.scivicslab.pojoactor.core.ActorSystem.Builder
Enclosing class:
ActorSystem

public static class ActorSystem.Builder extends Object
Builder class for creating ActorSystem instances with custom configurations.
  • Constructor Details

    • Builder

      public Builder(String systemName)
      Constructs a new Builder with the specified system name.
      Parameters:
      systemName - the name for the actor system
  • Method Details

    • threadNum

      public ActorSystem.Builder threadNum(int num)
      Sets the number of threads for the actor system.
      Parameters:
      num - the number of threads to use
      Returns:
      this builder instance for method chaining
    • build

      public ActorSystem build()
      Builds and returns a new ActorSystem instance.
      Returns:
      a new ActorSystem with the configured settings