object Materializer
- Source
- Materializer.scala
- Alphabetic
- By Inheritance
- Materializer
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- def apply(systemProvider: ClassicActorSystemProvider, defaultAttributes: Attributes): Materializer
Scala API: Create a new materializer that will stay alive as long as the system does or until it is explicitly stopped.
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.
- def apply(systemProvider: ClassicActorSystemProvider): Materializer
Scala API: Create a new materializer that will stay alive as long as the system does or until it is explicitly stopped.
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 implicit
ActorSystem
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 an ActorContext instead. - def apply(contextProvider: ClassicActorContextProvider, defaultAttributes: Attributes): Materializer
Scala API: Create a materializer whose lifecycle will be tied to the one of the passed actor context.
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 an AbruptTerminationExeption
You can pass either a classic actor context or a typed actor context.
- def apply(contextProvider: ClassicActorContextProvider): Materializer
Scala API: Create a materializer whose lifecycle will be tied to the one of the passed actor context.
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 an AbruptTerminationExeption
You can pass either a classic actor context or a typed actor context.
- Annotations
- @nowarn()
- def createMaterializer(systemProvider: ClassicActorSystemProvider, defaultAttributes: Attributes): Materializer
Java API: Create a new materializer that will stay alive as long as the system does or until it is explicitly stopped.
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.
- def createMaterializer(systemProvider: ClassicActorSystemProvider): Materializer
Java API: Create a new materializer that will stay alive as long as the system does or until it is explicitly stopped.
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 the
ActorSystem
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 an ActorContext instead. - def createMaterializer(contextProvider: ClassicActorContextProvider, defaultAttributes: Attributes): Materializer
Java API: Create a materializer whose lifecycle will be tied to the one of the passed actor context.
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 an AbruptTerminationExeption
You can pass either a classic actor context or a typed actor context.
- def createMaterializer(contextProvider: ClassicActorContextProvider): Materializer
Java API: Create a materializer whose lifecycle will be tied to the one of the passed actor context.
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 an AbruptTerminationExeption
You can pass either a classic actor context or a typed actor context.
- implicit def matFromSystem(implicit provider: ClassicActorSystemProvider): Materializer
Implicitly provides the system wide materializer from a classic or typed
ActorSystem