!str #17189 Add withAttributes and named to Graph
* Remove optional attributes parameter in favor of withAttributes * Overload explosion when trying to add attributes to ZipWith. * Aligned with Flow and Source.
This commit is contained in:
parent
c98aee55ed
commit
c6404d3e44
24 changed files with 296 additions and 212 deletions
|
|
@ -38,10 +38,10 @@ final class Sink[-In, +Mat](private[stream] override val module: Module)
|
|||
def mapMaterialized[Mat2](f: Mat ⇒ Mat2): Sink[In, Mat2] =
|
||||
new Sink(module.transformMaterializedValue(f.asInstanceOf[Any ⇒ Any]))
|
||||
|
||||
def withAttributes(attr: OperationAttributes): Sink[In, Mat] =
|
||||
override def withAttributes(attr: OperationAttributes): Sink[In, Mat] =
|
||||
new Sink(module.withAttributes(attr).wrap())
|
||||
|
||||
def named(name: String): Sink[In, Mat] = withAttributes(OperationAttributes.name(name))
|
||||
override def named(name: String): Sink[In, Mat] = withAttributes(OperationAttributes.name(name))
|
||||
|
||||
/** Converts this Scala DSL element to it's Java DSL counterpart. */
|
||||
def asJava: javadsl.Sink[In, Mat] = new javadsl.Sink(this)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue