Package akka.actor

Interface AbstractProps

  • All Known Implementing Classes:
    Props$

    public interface AbstractProps
    INTERNAL API
    • 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)  
      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)
      • 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.
        Parameters:
        clazz - (undocumented)
        args - (undocumented)
        Returns:
        (undocumented)
      • 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.

        Parameters:
        creator - (undocumented)
        Returns:
        (undocumented)
      • 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.
        Parameters:
        actorClass - (undocumented)
        creator - (undocumented)
        Returns:
        (undocumented)
      • validate

        void validate​(java.lang.Class<?> clazz)
        INTERNAL API
        Parameters:
        clazz - (undocumented)