Class ActorActivator

java.lang.Object
it.tidalwave.actor.spi.ActorActivator

public class ActorActivator extends Object
This class is used to activate and deactivate an actor.
Author:
Fabrizio Giudici
  • Method Details

    • activatorFor

      public static ActorActivator activatorFor(@Nonnull Class<?> actorClass)
      Creates an instance for the given actor class.
      Parameters:
      actorClass - the actor class
      Returns:
      the instance
    • withPoolSize

      @Nonnull public ActorActivator withPoolSize(@Nonnegative int poolSize)
      Specifies the pool size for this activator.
      Parameters:
      poolSize - the pool size
      Returns:
      the activator
    • initialize

      public void initialize()
      Activates the managed actor.
    • dispose

      public void dispose()
      Deactivates the managed actor and releases resources.