Class Materializer$
- java.lang.Object
-
- akka.stream.Materializer$
-
public class Materializer$ extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static Materializer$
MODULE$
Static reference to the singleton instance of this Scala object.
-
Constructor Summary
Constructors Constructor Description Materializer$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Materializer
apply(ClassicActorContextProvider contextProvider)
Scala API: Create a materializer whose lifecycle will be tied to the one of the passed actor context.Materializer
apply(ClassicActorContextProvider contextProvider, Attributes defaultAttributes)
Scala API: Create a materializer whose lifecycle will be tied to the one of the passed actor context.Materializer
apply(ClassicActorSystemProvider systemProvider)
Scala API: Create a new materializer that will stay alive as long as the system does or until it is explicitly stopped.Materializer
apply(ClassicActorSystemProvider systemProvider, Attributes defaultAttributes)
Scala API: Create a new materializer that will stay alive as long as the system does or until it is explicitly stopped.Materializer
createMaterializer(ClassicActorContextProvider contextProvider)
Java API: Create a materializer whose lifecycle will be tied to the one of the passed actor context.Materializer
createMaterializer(ClassicActorContextProvider contextProvider, Attributes defaultAttributes)
Java API: Create a materializer whose lifecycle will be tied to the one of the passed actor context.Materializer
createMaterializer(ClassicActorSystemProvider systemProvider)
Java API: Create a new materializer that will stay alive as long as the system does or until it is explicitly stopped.Materializer
createMaterializer(ClassicActorSystemProvider systemProvider, Attributes defaultAttributes)
Java API: Create a new materializer that will stay alive as long as the system does or until it is explicitly stopped.Materializer
matFromSystem(ClassicActorSystemProvider provider)
Implicitly provides the system wide materializer from a classic or typedActorSystem
-
-
-
Field Detail
-
MODULE$
public static final Materializer$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
matFromSystem
public Materializer matFromSystem(ClassicActorSystemProvider provider)
Implicitly provides the system wide materializer from a classic or typedActorSystem
-
apply
public Materializer apply(ClassicActorContextProvider contextProvider)
Scala API: Create a materializer whose lifecycle will be tied to the one of the passed actor context. When the actor stops the materializer will stop and all streams created with it will be failed with anAbruptTerminationExeption
You can pass either a classic actor context or a typed actor context.
-
createMaterializer
public Materializer createMaterializer(ClassicActorContextProvider contextProvider)
Java API: Create a materializer whose lifecycle will be tied to the one of the passed actor context. When the actor stops the materializer will stop and all streams created with it will be failed with anAbruptTerminationExeption
You can pass either a classic actor context or a typed actor context.
-
apply
public Materializer apply(ClassicActorContextProvider contextProvider, Attributes defaultAttributes)
Scala API: Create a materializer whose lifecycle will be tied to the one of the passed actor context. When the actor stops the materializer will stop and all streams created with it will be failed with anAbruptTerminationExeption
You can pass either a classic actor context or a typed actor context.
-
createMaterializer
public Materializer createMaterializer(ClassicActorContextProvider contextProvider, Attributes defaultAttributes)
Java API: Create a materializer whose lifecycle will be tied to the one of the passed actor context. When the actor stops the materializer will stop and all streams created with it will be failed with anAbruptTerminationExeption
You can pass either a classic actor context or a typed actor context.
-
apply
public Materializer apply(ClassicActorSystemProvider systemProvider)
Scala API: Create a new materializer that will stay alive as long as the system does or until it is explicitly stopped.*Note* prefer using the default
SystemMaterializer
that is implicitly available if you have an implicitActorSystem
in scope. Only create new system level materializers if you have specific needs or want to test abrupt termination of a custom graph stage. If you want to tie the lifecycle of the materializer to an actor, use the factory that takes anActorContext
instead.
-
createMaterializer
public Materializer createMaterializer(ClassicActorSystemProvider systemProvider)
Java API: Create a new materializer that will stay alive as long as the system does or until it is explicitly stopped.*Note* prefer using the default
SystemMaterializer
by passing theActorSystem
to the variousrun
methods on the streams. Only create new system level materializers if you have specific needs or want to test abrupt termination of a custom graph stage. If you want to tie the lifecycle of the materializer to an actor, use the factory that takes anActorContext
instead.
-
apply
public Materializer apply(ClassicActorSystemProvider systemProvider, Attributes defaultAttributes)
Scala API: Create a new materializer that will stay alive as long as the system does or until it is explicitly stopped.It is generally advised to limit the number of system level materializers created.
-
createMaterializer
public Materializer createMaterializer(ClassicActorSystemProvider systemProvider, Attributes defaultAttributes)
Java API: Create a new materializer that will stay alive as long as the system does or until it is explicitly stopped.It is generally advised to limit the number of system level materializers created.
-
-