Package akka.actor

Interface AbstractProps

  • All Known Implementing Classes:
    Props$

    public interface AbstractProps
    Java API: Factory for Props instances.
    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      void checkCreatorClosingOver​(java.lang.Class<?> clazz)  
      <T extends Actor>
      Props
      create​(Creator<T> creator)
      Deprecated.
      Use Props.create(actorClass, creator) instead, since this can't be used with Java 8 lambda.
      Props create​(java.lang.Class<?> clazz, java.lang.Object... args)
      Java API: create a Props given a class and its constructor arguments.
      Props create​(java.lang.Class<?> clazz, scala.collection.immutable.Seq<java.lang.Object> args)
      Java API: create a Props given a class and its constructor arguments.
      <T extends Actor>
      Props
      create​(java.lang.Class<T> actorClass, Creator<T> creator)
      Create new Props from the given Creator with the type set to the given actorClass.
      void validate​(java.lang.Class<?> clazz)
      INTERNAL API
    • Method Detail

      • checkCreatorClosingOver

        void checkCreatorClosingOver​(java.lang.Class<?> clazz)
      • create

        Props create​(java.lang.Class<?> clazz,
                     java.lang.Object... args)
        Java API: create a Props given a class and its constructor arguments.
      • create

        Props create​(java.lang.Class<?> clazz,
                     scala.collection.immutable.Seq<java.lang.Object> args)
        Java API: create a Props given a class and its constructor arguments.
      • create

        <T extends ActorProps create​(Creator<T> creator)
        Deprecated.
        Use Props.create(actorClass, creator) instead, since this can't be used with Java 8 lambda. Since 2.5.18.
        Create new Props from the given Creator.

        You can not use a Java 8 lambda with this method since the generated classes don't carry enough type information.

        Use the Props.create(actorClass, creator) instead.

      • create

        <T extends ActorProps create​(java.lang.Class<T> actorClass,
                                       Creator<T> creator)
        Create new Props from the given Creator with the type set to the given actorClass.
      • validate

        void validate​(java.lang.Class<?> clazz)
        INTERNAL API