Class ActorMaterializer
- java.lang.Object
-
- org.apache.pekko.stream.Materializer
-
- org.apache.pekko.stream.ActorMaterializer
-
- All Implemented Interfaces:
MaterializerLoggingProvider
public abstract class ActorMaterializer extends Materializer implements MaterializerLoggingProvider
Deprecated.The Materializer now has all methods the ActorMaterializer used to have. Since Akka 2.6.0.An ActorMaterializer takes a stream blueprint and turns it into a running stream.
-
-
Constructor Summary
Constructors Constructor Description ActorMaterializer()
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ActorMaterializer
apply(ActorMaterializerSettings materializerSettings, java.lang.String namePrefix, ActorRefFactory context)
Deprecated.Use the system wide materializer with stream attributes or configuration settings to change defaults.static ActorMaterializer
apply(ActorMaterializerSettings materializerSettings, ActorRefFactory context)
Deprecated.Use the system wide materializer or Materializer.apply(actorContext) with stream attributes or configuration settings to change defaults.static ActorMaterializer
apply(scala.Option<ActorMaterializerSettings> materializerSettings, scala.Option<java.lang.String> namePrefix, ActorRefFactory context)
Deprecated.Use the system wide materializer with stream attributes or configuration settings to change defaults.static scala.Option<ActorMaterializerSettings>
apply$default$1()
Deprecated.static scala.Option<java.lang.String>
apply$default$2()
Deprecated.static ActorMaterializer
create(ActorRefFactory context)
Deprecated.Use the system wide materializer or Materializer.create(actorContext) with stream attributes or configuration settings to change defaults.static ActorMaterializer
create(ActorRefFactory context, java.lang.String namePrefix)
Deprecated.Use the system wide materializer or Materializer.create(actorContext) with stream attributes or configuration settings to change defaults.static ActorMaterializer
create(ActorMaterializerSettings settings, ActorRefFactory context)
Deprecated.Use the system wide materializer or Materializer.create(actorContext) with stream attributes or configuration settings to change defaults.static ActorMaterializer
create(ActorMaterializerSettings settings, ActorRefFactory context, java.lang.String namePrefix)
Deprecated.Use the system wide materializer or Materializer.create(actorContext) with stream attributes or configuration settings to change defaults.abstract boolean
isShutdown()
Deprecated.Indicates if the materializer has been shut down.abstract ActorMaterializerSettings
settings()
Deprecated.Use attributes to access settings from stages, see https://doc.akka.io/docs/akka/2.6/project/migration-guide-2.5.x-2.6.x.html.abstract void
shutdown()
Deprecated.Shuts down this materializer and all the operators that have been materialized through this materializer.abstract ActorSystem
system()
Deprecated.INTERNAL API-
Methods inherited from class org.apache.pekko.stream.Materializer
apply, apply, createMaterializer, createMaterializer, executionContext, materialize, materialize, matFromSystem, scheduleAtFixedRate, scheduleOnce, schedulePeriodically, scheduleWithFixedDelay, withNamePrefix
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.pekko.stream.MaterializerLoggingProvider
makeLogger
-
-
-
-
Method Detail
-
apply
public static ActorMaterializer apply(scala.Option<ActorMaterializerSettings> materializerSettings, scala.Option<java.lang.String> namePrefix, ActorRefFactory context)
Deprecated.Use the system wide materializer with stream attributes or configuration settings to change defaults. Since Akka 2.6.0.Scala API: Creates an ActorMaterializer that can materialize stream blueprints as running streams.The required
pekko.actor.ActorRefFactory
(which can be either anpekko.actor.ActorSystem
or anpekko.actor.ActorContext
) will be used to create one actor that in turn creates actors for the transformation steps.The materializer's
pekko.stream.ActorMaterializerSettings
will be obtained from the configuration of thecontext
's underlyingpekko.actor.ActorSystem
.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
.
-
apply
public static ActorMaterializer apply(ActorMaterializerSettings materializerSettings, java.lang.String namePrefix, ActorRefFactory context)
Deprecated.Use the system wide materializer with stream attributes or configuration settings to change defaults. Since Akka 2.6.0.Scala API: Creates an ActorMaterializer that can materialize stream blueprints as running streams.The required
pekko.actor.ActorRefFactory
(which can be either anpekko.actor.ActorSystem
or anpekko.actor.ActorContext
) 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
.
-
apply
public static ActorMaterializer apply(ActorMaterializerSettings materializerSettings, ActorRefFactory context)
Deprecated.Use the system wide materializer or Materializer.apply(actorContext) with stream attributes or configuration settings to change defaults. Since Akka 2.6.0.Scala API: Creates an ActorMaterializer that can materialize stream blueprints as running streams.The required
pekko.actor.ActorRefFactory
(which can be either anpekko.actor.ActorSystem
or anpekko.actor.ActorContext
) 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
.
-
apply$default$1
public static scala.Option<ActorMaterializerSettings> apply$default$1()
Deprecated.
-
apply$default$2
public static scala.Option<java.lang.String> apply$default$2()
Deprecated.
-
create
public static ActorMaterializer create(ActorRefFactory context)
Deprecated.Use the system wide materializer or Materializer.create(actorContext) with stream attributes or configuration settings to change defaults. Since Akka 2.6.0.Java API: Creates an ActorMaterializer that can materialize stream blueprints as running streams.The required
pekko.actor.ActorRefFactory
(which can be either anpekko.actor.ActorSystem
or anpekko.actor.ActorContext
) 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
.
-
create
public static ActorMaterializer create(ActorRefFactory context, java.lang.String namePrefix)
Deprecated.Use the system wide materializer or Materializer.create(actorContext) with stream attributes or configuration settings to change defaults. Since Akka 2.6.0.Java API: Creates an ActorMaterializer that can materialize stream blueprints as running streams.The required
pekko.actor.ActorRefFactory
(which can be either anpekko.actor.ActorSystem
or anpekko.actor.ActorContext
) 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
.
-
create
public static ActorMaterializer create(ActorMaterializerSettings settings, ActorRefFactory context)
Deprecated.Use the system wide materializer or Materializer.create(actorContext) with stream attributes or configuration settings to change defaults. Since Akka 2.6.0.Java API: Creates an ActorMaterializer that can materialize stream blueprints as running streams.The required
pekko.actor.ActorRefFactory
(which can be either anpekko.actor.ActorSystem
or anpekko.actor.ActorContext
) will be used to create one actor that in turn creates actors for the transformation steps.
-
create
public static ActorMaterializer create(ActorMaterializerSettings settings, ActorRefFactory context, java.lang.String namePrefix)
Deprecated.Use the system wide materializer or Materializer.create(actorContext) with stream attributes or configuration settings to change defaults. Since Akka 2.6.0.Java API: Creates an ActorMaterializer that can materialize stream blueprints as running streams.The required
pekko.actor.ActorRefFactory
(which can be either anpekko.actor.ActorSystem
or anpekko.actor.ActorContext
) 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
.
-
settings
public abstract ActorMaterializerSettings settings()
Deprecated.Use attributes to access settings from stages, see https://doc.akka.io/docs/akka/2.6/project/migration-guide-2.5.x-2.6.x.html. Since Akka 2.6.0.- Specified by:
settings
in classMaterializer
-
shutdown
public abstract void shutdown()
Deprecated.Shuts down this materializer and all the operators that have been materialized through this materializer. After having shut down, this materializer cannot be used again. Any attempt to materialize operators after having shut down will result in an IllegalStateException being thrown at materialization time.- Specified by:
shutdown
in classMaterializer
-
isShutdown
public abstract boolean isShutdown()
Deprecated.Indicates if the materializer has been shut down.- Specified by:
isShutdown
in classMaterializer
-
system
public abstract ActorSystem system()
Deprecated.INTERNAL API- Specified by:
system
in classMaterializer
-
-