Package it.tidalwave.actor.spi
Class ActorActivator
java.lang.Object
it.tidalwave.actor.spi.ActorActivator
This class is used to activate and deactivate an actor.
- Author:
- Fabrizio Giudici
-
Method Summary
Modifier and TypeMethodDescriptionstatic ActorActivator
activatorFor
(Class<?> actorClass) Creates an instance for the given actor class.void
dispose()
Deactivates the managed actor and releases resources.void
Activates the managed actor.withPoolSize
(int poolSize) Specifies the pool size for this activator.
-
Method Details
-
activatorFor
Creates an instance for the given actor class.- Parameters:
actorClass
- the actor class- Returns:
- the instance
-
withPoolSize
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.
-