Package akka.actor
Interface IndirectActorProducer
-
- All Known Implementing Classes:
ArgsReflectConstructor
,CreatorConsumer
,CreatorFunctionConsumer
,NoArgsReflectConstructor
,RoutedActorCell.RouterActorCreator
,TypedCreatorFunctionConsumer
public 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.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Class<? extends Actor>
actorClass()
This method is used byProps
to determine the type of actor which will be created.Actor
produce()
-
-
-
Method Detail
-
produce
Actor produce()
-
actorClass
java.lang.Class<? extends Actor> actorClass()
This method is used byProps
to determine the type of actor which will be created. This means that an instance of thisIndirectActorProducer
will be created in order to call this method during any call toProps.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 callingactorClass
is not necessarily reused later to produce the actor.- Returns:
- (undocumented)
-
-