public abstract class ActorMaterializer extends Materializer implements MaterializerLoggingProvider
Flow
and materializes them in the form of
Processor
instances. How transformation
steps are split up into asynchronous regions is implementation
dependent.Constructor and Description |
---|
ActorMaterializer() |
Modifier and Type | Method and Description |
---|---|
abstract ActorRef |
actorOf(MaterializationContext context,
Props props)
INTERNAL API
|
static ActorMaterializer |
apply(ActorMaterializerSettings materializerSettings,
ActorRefFactory context)
Scala API: Creates an ActorMaterializer which will execute every step of a transformation
pipeline within its own
Actor . |
static ActorMaterializer |
apply(ActorMaterializerSettings materializerSettings,
java.lang.String namePrefix,
ActorRefFactory context)
Scala API: Creates an ActorMaterializer which will execute every step of a transformation
pipeline within its own
Actor . |
static ActorMaterializer |
apply(scala.Option<ActorMaterializerSettings> materializerSettings,
scala.Option<java.lang.String> namePrefix,
ActorRefFactory context)
Scala API: Creates an ActorMaterializer which will execute every step of a transformation
pipeline within its own
Actor . |
static ActorMaterializer |
create(ActorMaterializerSettings settings,
ActorRefFactory context)
Java API: Creates an ActorMaterializer which will execute every step of a transformation
pipeline within its own
Actor . |
static ActorMaterializer |
create(ActorMaterializerSettings settings,
ActorRefFactory context,
java.lang.String namePrefix)
Java API: Creates an ActorMaterializer which will execute every step of a transformation
pipeline within its own
Actor . |
static ActorMaterializer |
create(ActorRefFactory context)
Java API: Creates an ActorMaterializer which will execute every step of a transformation
pipeline within its own
Actor . |
abstract ActorMaterializerSettings |
effectiveSettings(Attributes opAttr) |
abstract static scala.concurrent.ExecutionContextExecutor |
executionContext() |
abstract boolean |
isShutdown()
Indicates if the materializer has been shut down.
|
abstract LoggingAdapter |
logger()
INTERNAL API
|
abstract static LoggingAdapter |
makeLogger(java.lang.Class<?> logSource) |
abstract static <Mat> Mat |
materialize(Graph<ClosedShape,Mat> runnable) |
abstract static <Mat> Mat |
materialize(Graph<ClosedShape,Mat> runnable,
Attributes initialAttributes) |
abstract static Cancellable |
scheduleOnce(scala.concurrent.duration.FiniteDuration delay,
java.lang.Runnable task) |
abstract static Cancellable |
schedulePeriodically(scala.concurrent.duration.FiniteDuration initialDelay,
scala.concurrent.duration.FiniteDuration interval,
java.lang.Runnable task) |
abstract ActorMaterializerSettings |
settings() |
abstract void |
shutdown()
Shuts down this materializer and all the stages that have been materialized through this materializer.
|
abstract ActorRef |
supervisor()
INTERNAL API
|
abstract ActorSystem |
system()
INTERNAL API
|
static ActorMaterializer |
systemMaterializer(ActorMaterializerSettings materializerSettings,
java.lang.String namePrefix,
ExtendedActorSystem system)
INTERNAL API: Creates the
StreamSupervisor as a system actor. |
abstract static Materializer |
withNamePrefix(java.lang.String name) |
executionContext, materialize, materialize, scheduleOnce, schedulePeriodically, withNamePrefix
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
makeLogger
public static ActorMaterializer apply(scala.Option<ActorMaterializerSettings> materializerSettings, scala.Option<java.lang.String> namePrefix, ActorRefFactory context)
Actor
. The required ActorRefFactory
(which can be either an ActorSystem
or an ActorContext
)
will be used to create one actor that in turn creates actors for the transformation steps.
The materializer's ActorMaterializerSettings
will be obtained from the
configuration of the context
's underlying ActorSystem
.
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
.
materializerSettings
- (undocumented)namePrefix
- (undocumented)context
- (undocumented)public static ActorMaterializer apply(ActorMaterializerSettings materializerSettings, java.lang.String namePrefix, ActorRefFactory context)
Actor
. The required ActorRefFactory
(which can be either an ActorSystem
or an 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 default namePrefix
is "flow"
. The actor names are built up of
namePrefix-flowNumber-flowStepNumber-stepName
.
materializerSettings
- (undocumented)namePrefix
- (undocumented)context
- (undocumented)public static ActorMaterializer apply(ActorMaterializerSettings materializerSettings, ActorRefFactory context)
Actor
. The required ActorRefFactory
(which can be either an ActorSystem
or an 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 default namePrefix
is "flow"
. The actor names are built up of
namePrefix-flowNumber-flowStepNumber-stepName
.
materializerSettings
- (undocumented)context
- (undocumented)public static ActorMaterializer systemMaterializer(ActorMaterializerSettings materializerSettings, java.lang.String namePrefix, ExtendedActorSystem system)
StreamSupervisor
as a system actor.materializerSettings
- (undocumented)namePrefix
- (undocumented)system
- (undocumented)public static ActorMaterializer create(ActorRefFactory context)
Actor
. The required ActorRefFactory
(which can be either an ActorSystem
or an 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 of namePrefix-flowNumber-flowStepNumber-stepName
.
context
- (undocumented)public static ActorMaterializer create(ActorMaterializerSettings settings, ActorRefFactory context)
Actor
. The required ActorRefFactory
(which can be either an ActorSystem
or an ActorContext
)
will be used to create one actor that in turn creates actors for the transformation steps.settings
- (undocumented)context
- (undocumented)public static ActorMaterializer create(ActorMaterializerSettings settings, ActorRefFactory context, java.lang.String namePrefix)
Actor
. The required ActorRefFactory
(which can be either an ActorSystem
or an 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 default namePrefix
is "flow"
. The actor names are built up of
namePrefix-flowNumber-flowStepNumber-stepName
.
settings
- (undocumented)context
- (undocumented)namePrefix
- (undocumented)public abstract static Materializer withNamePrefix(java.lang.String name)
public abstract static <Mat> Mat materialize(Graph<ClosedShape,Mat> runnable)
public abstract static <Mat> Mat materialize(Graph<ClosedShape,Mat> runnable, Attributes initialAttributes)
public abstract static scala.concurrent.ExecutionContextExecutor executionContext()
public abstract static Cancellable scheduleOnce(scala.concurrent.duration.FiniteDuration delay, java.lang.Runnable task)
public abstract static Cancellable schedulePeriodically(scala.concurrent.duration.FiniteDuration initialDelay, scala.concurrent.duration.FiniteDuration interval, java.lang.Runnable task)
public abstract static LoggingAdapter makeLogger(java.lang.Class<?> logSource)
public abstract ActorMaterializerSettings settings()
public abstract ActorMaterializerSettings effectiveSettings(Attributes opAttr)
public abstract void shutdown()
public abstract boolean isShutdown()
public abstract ActorRef actorOf(MaterializationContext context, Props props)
context
- (undocumented)props
- (undocumented)public abstract ActorSystem system()
public abstract LoggingAdapter logger()
public abstract ActorRef supervisor()