public static class RoutedActorCell.RouterActorCreator extends java.lang.Object implements IndirectActorProducer
Constructor and Description |
---|
RouterActorCreator(RouterConfig routerConfig) |
Modifier and Type | Method and Description |
---|---|
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.
|
public RouterActorCreator(RouterConfig routerConfig)
public java.lang.Class<RouterActor> actorClass()
IndirectActorProducer
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’s instantiation, and
that the instance created for calling actorClass
is not necessarily reused
later to produce the actor.actorClass
in interface IndirectActorProducer
public RouterActor produce()
IndirectActorProducer
produce
in interface IndirectActorProducer