final case class Attributes(attributeList: List[Attribute] = Nil) extends Product with Serializable
Holds attributes which can be used to alter pekko.stream.scaladsl.Flow / pekko.stream.javadsl.Flow or pekko.stream.scaladsl.GraphDSL / pekko.stream.javadsl.GraphDSL materialization.
Note that more attributes for the Materializer are defined in ActorAttributes.
The
is ordered with the most specific attribute first, least specific last.
Note that the order was the opposite in Akka 2.4.x.attributeList
Operators should in general not access the attributeList
but instead use get
to get the expected
value of an attribute.
- Source
- Attributes.scala
- Alphabetic
- By Inheritance
- Attributes
- Serializable
- Product
- Equals
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- Implicit
- This member is added by an implicit conversion from Attributes toany2stringadd[Attributes] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
- def ->[B](y: B): (Attributes, B)
- Implicit
- This member is added by an implicit conversion from Attributes toArrowAssoc[Attributes] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def and(other: Attribute): Attributes
Adds given attribute.
Adds given attribute. Added attribute is considered more specific than already existing attributes of the same type.
- def and(other: Attributes): Attributes
Adds given attributes.
Adds given attributes. Added attributes are considered more specific than already existing attributes of the same type.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val attributeList: List[Attribute]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- def contains(attr: Attribute): Boolean
Test whether the given attribute is contained within this attributes list.
Test whether the given attribute is contained within this attributes list.
Note that operators in general should not inspect the whole hierarchy but instead use
get
to get the most specific attribute value. - def ensuring(cond: (Attributes) => Boolean, msg: => Any): Attributes
- Implicit
- This member is added by an implicit conversion from Attributes toEnsuring[Attributes] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (Attributes) => Boolean): Attributes
- Implicit
- This member is added by an implicit conversion from Attributes toEnsuring[Attributes] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: => Any): Attributes
- Implicit
- This member is added by an implicit conversion from Attributes toEnsuring[Attributes] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): Attributes
- Implicit
- This member is added by an implicit conversion from Attributes toEnsuring[Attributes] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def filtered[T <: Attribute](implicit arg0: ClassTag[T]): List[T]
Scala API: Get all attributes of a given type (or subtypes thereof).
Scala API: Get all attributes of a given type (or subtypes thereof).
Note that operators in general should not inspect the whole hierarchy but instead use
get
to get the most specific attribute value.The list is ordered with the most specific attribute first, least specific last. Note that the order was the opposite in Akka 2.4.x.
- def get[T <: Attribute](implicit arg0: ClassTag[T]): Option[T]
Scala API: Get the most specific attribute value for a given Attribute type or subclass thereof.
Scala API: Get the most specific attribute value for a given Attribute type or subclass thereof.
The most specific value is the value that was added closest to the graph or operator itself or if the same attribute was added multiple times to the same graph, the last to be added.
This is the expected way for operators to access attributes.
- See also
Attributes#get For providing a default value if the attribute was not set
- def get[T <: Attribute](default: T)(implicit arg0: ClassTag[T]): T
Scala API: Get the most specific attribute value for a given Attribute type or subclass thereof or if no such attribute exists, return a default value.
Scala API: Get the most specific attribute value for a given Attribute type or subclass thereof or if no such attribute exists, return a default value.
The most specific value is the value that was added closest to the graph or operator itself or if the same attribute was added multiple times to the same graph, the last to be added.
This is the expected way for operators to access attributes.
- def getAttribute[T <: Attribute](c: Class[T]): Optional[T]
Java API: Get the most specific attribute value for a given Attribute type or subclass thereof.
Java API: Get the most specific attribute value for a given Attribute type or subclass thereof.
The most specific value is the value that was added closest to the graph or operator itself or if the same attribute was added multiple times to the same graph, the last to be added.
This is the expected way for operators to access attributes.
- def getAttribute[T <: Attribute](c: Class[T], default: T): T
Java API: Get the most specific attribute value for a given Attribute type or subclass thereof.
Java API: Get the most specific attribute value for a given Attribute type or subclass thereof. If no such attribute exists, return a
default
value.The most specific value is the value that was added closest to the graph or operator itself or if the same attribute was added multiple times to the same graph, the last to be added.
This is the expected way for operators to access attributes.
- def getAttributeList[T <: Attribute](c: Class[T]): List[T]
Java API: Get all attributes of a given
Class
or subclass thereof.Java API: Get all attributes of a given
Class
or subclass thereof.The list is ordered with the most specific attribute first, least specific last. Note that the order was the opposite in Akka 2.4.x.
Note that operators in general should not inspect the whole hierarchy but instead use
get
to get the most specific attribute value. - def getAttributeList(): List[Attribute]
Java API
Java API
The list is ordered with the most specific attribute first, least specific last. Note that the order was the opposite in Akka 2.4.x.
Note that operators in general should not inspect the whole hierarchy but instead use
get
to get the most specific attribute value. - final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def getMandatoryAttribute[T <: MandatoryAttribute](c: Class[T]): T
Java API: Get the most specific of one of the mandatory attributes.
Java API: Get the most specific of one of the mandatory attributes. Mandatory attributes are guaranteed to always be among the attributes when the attributes are coming from a materialization.
- c
A class that is a subtype of MandatoryAttribute
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def mandatoryAttribute[T <: MandatoryAttribute](implicit arg0: ClassTag[T]): T
Scala API: Get the most specific of one of the mandatory attributes.
Scala API: Get the most specific of one of the mandatory attributes. Mandatory attributes are guaranteed to always be among the attributes when the attributes are coming from a materialization.
- def nameLifted: Option[String]
Extracts Name attributes and concatenates them.
- def nameOrDefault(default: String = "unnamed"): String
- Annotations
- @InternalApi()
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from Attributes toStringFormat[Attributes] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.12.16) Use
formatString.format(value)
instead ofvalue.formatted(formatString)
, or use thef""
string interpolator. In Java 15 and later,formatted
resolves to the new method in String which has reversed parameters.
- def getFirst[T <: Attribute](implicit arg0: ClassTag[T]): Option[T]
Scala API: Get the least specific attribute (added first) of a given type parameter T
Class
or subclass thereof.Scala API: Get the least specific attribute (added first) of a given type parameter T
Class
or subclass thereof.- Annotations
- @deprecated
- Deprecated
(Since version Akka 2.5.7) Attributes should always be most specific, use get[T]
- def getFirst[T <: Attribute](default: T)(implicit arg0: ClassTag[T]): T
Scala API: Get the least specific attribute (added first) of a given type parameter T
Class
or subclass thereof.Scala API: Get the least specific attribute (added first) of a given type parameter T
Class
or subclass thereof. If no such attribute exists thedefault
value is returned.- Annotations
- @deprecated
- Deprecated
(Since version Akka 2.5.7) Attributes should always be most specific, use get[T]
- def getFirstAttribute[T <: Attribute](c: Class[T]): Optional[T]
Java API: Get the least specific attribute (added first) of a given
Class
or subclass thereof.Java API: Get the least specific attribute (added first) of a given
Class
or subclass thereof.- Annotations
- @deprecated
- Deprecated
(Since version Akka 2.5.7) Attributes should always be most specific, use get[T]
- def getFirstAttribute[T <: Attribute](c: Class[T], default: T): T
Java API: Get the least specific attribute (added first) of a given
Class
or subclass thereof.Java API: Get the least specific attribute (added first) of a given
Class
or subclass thereof. If no such attribute exists thedefault
value is returned.- Annotations
- @deprecated
- Deprecated
(Since version Akka 2.5.7) Attributes should always be most specific, use getAttribute[T]
- def →[B](y: B): (Attributes, B)
- Implicit
- This member is added by an implicit conversion from Attributes toArrowAssoc[Attributes] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.