Class Materializer$
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Materializer$Static reference to the singleton instance of this Scala object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(ClassicActorContextProvider contextProvider) Scala API: Create a materializer whose lifecycle will be tied to the one of the passed actor context.apply(ClassicActorContextProvider contextProvider, Attributes defaultAttributes) Scala API: Create a materializer whose lifecycle will be tied to the one of the passed actor context.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.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.createMaterializer(ClassicActorContextProvider contextProvider) Java API: Create a materializer whose lifecycle will be tied to the one of the passed actor context.createMaterializer(ClassicActorContextProvider contextProvider, Attributes defaultAttributes) Java API: Create a materializer whose lifecycle will be tied to the one of the passed actor context.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.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.matFromSystem(ClassicActorSystemProvider provider) Implicitly provides the system wide materializer from a classic or typedActorSystem
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
Materializer$
public Materializer$()
-
-
Method Details
-
matFromSystem
Implicitly provides the system wide materializer from a classic or typedActorSystem -
apply
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 anAbruptTerminationExeptionYou can pass either a classic actor context or a typed actor context.
-
createMaterializer
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 anAbruptTerminationExeptionYou 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 anAbruptTerminationExeptionThe given
defaultAttributesare applied to all streams materialized with this materializer, and can be overridden by attributes set on the streams themselves.You can pass either a classic actor context or a typed actor context.
- Since:
- 2.0.0
-
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 anAbruptTerminationExeptionThe given
defaultAttributesare applied to all streams materialized with this materializer, and can be overridden by attributes set on the streams themselves.You can pass either a classic actor context or a typed actor context.
- Since:
- 2.0.0
-
apply
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
SystemMaterializerthat is implicitly available if you have an implicitActorSystemin 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 anActorContextinstead. -
createMaterializer
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
SystemMaterializerby passing theActorSystemto the variousrunmethods 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 anActorContextinstead. -
apply
Scala API: Create a new materializer that will stay alive as long as the system does or until it is explicitly stopped.The given
defaultAttributesare applied to all streams materialized with this materializer, and can be overridden by attributes set on the streams themselves.It is generally advised to limit the number of system level materializers created.
- Since:
- 2.0.0
-
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.The given
defaultAttributesare applied to all streams materialized with this materializer, and can be overridden by attributes set on the streams themselves.It is generally advised to limit the number of system level materializers created.
- Since:
- 2.0.0
-