Class ActorMaterializerFactory
- java.lang.Object
-
- akka.stream.typed.javadsl.ActorMaterializerFactory
-
public class ActorMaterializerFactory extends java.lang.Object
Creates anActorMaterializer
which will execute every step of a transformation pipeline within its ownActor
. The requiredActorSystem
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 ofnamePrefix-flowNumber-flowStepNumber-stepName
.
-
-
Constructor Summary
Constructors Constructor Description ActorMaterializerFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> ActorMaterializer
create(ActorSystem<T> actorSystem)
static <T> ActorMaterializer
create(ActorContext<T> ctx)
Creates anActorMaterializer
which will execute every step of a transformation pipeline within its ownActor
.static <T> ActorMaterializer
create(ActorMaterializerSettings settings, ActorSystem<T> actorSystem)
Creates anActorMaterializer
which will execute every step of a transformation pipeline within its ownActor
.static <T> ActorMaterializer
create(ActorMaterializerSettings settings, ActorContext<T> ctx)
Creates anActorMaterializer
which will execute every step of a transformation pipeline within its ownActor
.static <T> ActorMaterializer
create(ActorMaterializerSettings settings, java.lang.String namePrefix, ActorSystem<T> actorSystem)
Creates anActorMaterializer
which will execute every step of a transformation pipeline within its ownActor
.static <T> ActorMaterializer
create(ActorMaterializerSettings settings, java.lang.String namePrefix, ActorContext<T> ctx)
Creates anActorMaterializer
which will execute every step of a transformation pipeline within its ownActor
.
-
-
-
Method Detail
-
create
public static <T> ActorMaterializer create(ActorSystem<T> actorSystem)
-
create
public static <T> ActorMaterializer create(ActorMaterializerSettings settings, ActorSystem<T> actorSystem)
Creates anActorMaterializer
which will execute every step of a transformation pipeline within its ownActor
. The requiredActorSystem
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 anActorMaterializer
which will execute every step of a transformation pipeline within its ownActor
. The requiredActorSystem
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 defaultnamePrefix
is"flow"
. The actor names are built up ofnamePrefix-flowNumber-flowStepNumber-stepName
.- Parameters:
settings
- (undocumented)namePrefix
- (undocumented)actorSystem
- (undocumented)- Returns:
- (undocumented)
-
create
public static <T> ActorMaterializer create(ActorContext<T> ctx)
Creates anActorMaterializer
which will execute every step of a transformation pipeline within its ownActor
. The lifecycle of the materialized streams will be bound to the lifecycle of the providedActorContext
Defaults the actor name prefix used to name actors running the processing steps to
"flow"
. The actor names are built up ofnamePrefix-flowNumber-flowStepNumber-stepName
.- Parameters:
ctx
- (undocumented)- Returns:
- (undocumented)
-
create
public static <T> ActorMaterializer create(ActorMaterializerSettings settings, ActorContext<T> ctx)
Creates anActorMaterializer
which will execute every step of a transformation pipeline within its ownActor
. The lifecycle of the materialized streams will be bound to the lifecycle of the providedActorContext
- Parameters:
settings
- (undocumented)ctx
- (undocumented)- Returns:
- (undocumented)
-
create
public static <T> ActorMaterializer create(ActorMaterializerSettings settings, java.lang.String namePrefix, ActorContext<T> ctx)
Creates anActorMaterializer
which will execute every step of a transformation pipeline within its ownActor
. The lifecycle of the materialized streams will be bound to the lifecycle of the providedActorContext
The
namePrefix
is used as the first part of the names of the actors running the processing steps. The defaultnamePrefix
is"flow"
. The actor names are built up ofnamePrefix-flowNumber-flowStepNumber-stepName
.- Parameters:
settings
- (undocumented)namePrefix
- (undocumented)ctx
- (undocumented)- Returns:
- (undocumented)
-
-