Class ActorMaterializerFactory


  • public class ActorMaterializerFactory
    extends java.lang.Object
    Creates an ActorMaterializer which will execute every step of a transformation pipeline within its own Actor. The required ActorSystem will be used to create these actors, therefore it is *forbidden* to pass this object to another actor if the factory is an ActorContext.

    Defaults the actor name prefix used to name actors running the processing steps to "flow". The actor names are built up of namePrefix-flowNumber-flowStepNumber-stepName.

    • Constructor Detail

      • ActorMaterializerFactory

        public ActorMaterializerFactory()
    • Method Detail

      • create

        public static <T> ActorMaterializer create​(ActorMaterializerSettings settings,
                                                   ActorSystem<T> actorSystem)
        Creates an ActorMaterializer which will execute every step of a transformation pipeline within its own Actor. The required ActorSystem will be used to create one actor that in turn creates actors for the transformation steps.
        Parameters:
        settings - (undocumented)
        actorSystem - (undocumented)
        Returns:
        (undocumented)
      • create

        public static <T> ActorMaterializer create​(ActorMaterializerSettings settings,
                                                   java.lang.String namePrefix,
                                                   ActorSystem<T> actorSystem)
        Creates an ActorMaterializer which will execute every step of a transformation pipeline within its own Actor. The required ActorSystem will be used to create these actors, therefore it is *forbidden* to pass this object to another actor if the factory is an ActorContext.

        The namePrefix is used as the first part of the names of the actors running the processing steps. The default namePrefix is "flow". The actor names are built up of namePrefix-flowNumber-flowStepNumber-stepName.

        Parameters:
        settings - (undocumented)
        namePrefix - (undocumented)
        actorSystem - (undocumented)
        Returns:
        (undocumented)
      • create

        public static <T> ActorMaterializer create​(ActorContext<T> ctx)
        Creates an ActorMaterializer which will execute every step of a transformation pipeline within its own Actor. The lifecycle of the materialized streams will be bound to the lifecycle of the provided ActorContext

        Defaults the actor name prefix used to name actors running the processing steps to "flow". The actor names are built up of namePrefix-flowNumber-flowStepNumber-stepName.

        Parameters:
        ctx - (undocumented)
        Returns:
        (undocumented)
      • create

        public static <T> ActorMaterializer create​(ActorMaterializerSettings settings,
                                                   ActorContext<T> ctx)
        Creates an ActorMaterializer which will execute every step of a transformation pipeline within its own Actor. The lifecycle of the materialized streams will be bound to the lifecycle of the provided ActorContext
        Parameters:
        settings - (undocumented)
        ctx - (undocumented)
        Returns:
        (undocumented)
      • create

        public static <T> ActorMaterializer create​(ActorMaterializerSettings settings,
                                                   java.lang.String namePrefix,
                                                   ActorContext<T> ctx)
        Creates an ActorMaterializer which will execute every step of a transformation pipeline within its own Actor. The lifecycle of the materialized streams will be bound to the lifecycle of the provided ActorContext

        The namePrefix is used as the first part of the names of the actors running the processing steps. The default namePrefix is "flow". The actor names are built up of namePrefix-flowNumber-flowStepNumber-stepName.

        Parameters:
        settings - (undocumented)
        namePrefix - (undocumented)
        ctx - (undocumented)
        Returns:
        (undocumented)