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