|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object akka.actor.TypedCreatorFunctionConsumer
public class TypedCreatorFunctionConsumer
INTERNAL API
Constructor Summary | |
---|---|
TypedCreatorFunctionConsumer(java.lang.Class<? extends Actor> clz,
scala.Function0<Actor> creator)
|
Method Summary | |
---|---|
java.lang.Class<? extends Actor> |
actorClass()
This method is used by Props to determine the type of actor which will
be created. |
Actor |
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 |
---|
public TypedCreatorFunctionConsumer(java.lang.Class<? extends Actor> clz, scala.Function0<Actor> creator)
Method Detail |
---|
public java.lang.Class<? extends Actor> 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 Actor produce()
IndirectActorProducer
produce
in interface IndirectActorProducer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |