public class NoMaterializer$ extends Materializer
Modifier and Type | Field and Description |
---|---|
static NoMaterializer$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
Constructor and Description |
---|
NoMaterializer$() |
Modifier and Type | Method and Description |
---|---|
scala.concurrent.ExecutionContextExecutor |
executionContext()
Running a flow graph will require execution resources, as will computations
within Sources, Sinks, etc.
|
<Mat> Mat |
materialize(Graph<ClosedShape,Mat> runnable)
This method interprets the given Flow description and creates the running
stream.
|
<Mat> Mat |
materialize(Graph<ClosedShape,Mat> runnable,
Attributes initialAttributes)
This method interprets the given Flow description and creates the running
stream using an explicitly provided
Attributes as top level attributes. |
Cancellable |
scheduleOnce(scala.concurrent.duration.FiniteDuration delay,
java.lang.Runnable task)
Interface for stages that need timer services for their functionality.
|
Cancellable |
schedulePeriodically(scala.concurrent.duration.FiniteDuration initialDelay,
scala.concurrent.duration.FiniteDuration interval,
java.lang.Runnable task)
Interface for stages that need timer services for their functionality.
|
Materializer |
withNamePrefix(java.lang.String name)
The
namePrefix shall be used for deriving the names of processing
entities that are created during materialization. |
public static final NoMaterializer$ MODULE$
public Materializer withNamePrefix(java.lang.String name)
Materializer
namePrefix
shall be used for deriving the names of processing
entities that are created during materialization. This is meant to aid
logging and failure reporting both during materialization and while the
stream is running.withNamePrefix
in class Materializer
name
- (undocumented)public <Mat> Mat materialize(Graph<ClosedShape,Mat> runnable)
Materializer
materialize
in class Materializer
runnable
- (undocumented)public <Mat> Mat materialize(Graph<ClosedShape,Mat> runnable, Attributes initialAttributes)
Materializer
Attributes
as top level attributes. The result can be highly
implementation specific, ranging from local actor chains to remote-deployed processing networks.materialize
in class Materializer
runnable
- (undocumented)initialAttributes
- (undocumented)public scala.concurrent.ExecutionContextExecutor executionContext()
Materializer
ExecutionContextExecutor
can be used by parts of the flow to submit processing jobs for execution,
run Future callbacks, etc.executionContext
in class Materializer
public Cancellable scheduleOnce(scala.concurrent.duration.FiniteDuration delay, java.lang.Runnable task)
Materializer
scheduleOnce
in class Materializer
delay
- (undocumented)task
- (undocumented)Cancellable
that allows cancelling the timer. Cancelling is best effort, if the event
has been already enqueued it will not have an effect.public Cancellable schedulePeriodically(scala.concurrent.duration.FiniteDuration initialDelay, scala.concurrent.duration.FiniteDuration interval, java.lang.Runnable task)
Materializer
schedulePeriodically
in class Materializer
initialDelay
- (undocumented)interval
- (undocumented)task
- (undocumented)Cancellable
that allows cancelling the timer. Cancelling is best effort, if the event
has been already enqueued it will not have an effect.