akka.routing
Class RoutedActorCell.RouterActorCreator

java.lang.Object
  extended by akka.routing.RoutedActorCell.RouterActorCreator
All Implemented Interfaces:
IndirectActorProducer
Enclosing class:
RoutedActorCell

public static class RoutedActorCell.RouterActorCreator
extends java.lang.Object
implements IndirectActorProducer


Constructor Summary
RoutedActorCell.RouterActorCreator(RouterConfig routerConfig)
           
 
Method Summary
 java.lang.Class<RouterActor> actorClass()
          This method is used by Props to determine the type of actor which will be created.
 RouterActor produce()
          This factory method must produce a fresh actor instance upon each invocation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoutedActorCell.RouterActorCreator

public RoutedActorCell.RouterActorCreator(RouterConfig routerConfig)
Method Detail

actorClass

public java.lang.Class<RouterActor> actorClass()
Description copied from interface: IndirectActorProducer
This method is used by Props to determine the type of actor which will be created. This means that an instance of this IndirectActorProducer will be created in order to call this method during any call to Props.actorClass(); it should be noted that such calls may performed during actor set-up before the actual actor&rsquo;s instantiation, and that the instance created for calling actorClass is not necessarily reused later to produce the actor.

Specified by:
actorClass in interface IndirectActorProducer
Returns:
(undocumented)

produce

public RouterActor produce()
Description copied from interface: IndirectActorProducer
This factory method must produce a fresh actor instance upon each invocation. It is not permitted to return the same instance more than once.

Specified by:
produce in interface IndirectActorProducer
Returns:
(undocumented)