Package akka.actor

Class CreatorFunctionConsumer

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Class<Actor> actorClass()
      This method is used by Props to determine the type of actor which will be created.
      Actor produce()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CreatorFunctionConsumer

        public CreatorFunctionConsumer​(scala.Function0<Actor> creator)
    • Method Detail

      • actorClass

        public java.lang.Class<Actor> 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)