Class ActorActivator


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

      • activatorFor

        public static ActorActivator activatorFor​(@Nonnull
                                                  java.lang.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.