c
org.apache.pekko.stream.connectors.reference
ReferenceWriteMessage
Companion object ReferenceWriteMessage
final class ReferenceWriteMessage extends AnyRef
Use "Write" in message data types to signify that the messages is to be written to outside.
- Source
- model.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ReferenceWriteMessage
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- val data: Seq[ByteString]
- def getData(): List[ByteString]
Java API
Java API
If the model class is meant to be also consumed from the user API, but the attribute class is Scala specific, create getter for Java API.
- def getMetrics(): Map[String, Long]
Java API
Java API
Java getter needs to return Java Long classes which is converted from Scala Long.
- val metrics: Map[String, Long]
- def toString(): String
- Definition Classes
- ReferenceWriteMessage → AnyRef → Any
- def withData(data: List[ByteString]): ReferenceWriteMessage
Java API
Java API
When settings class has an attribute of Scala collection type, create a setter that takes a corresponding Java collection type.
- def withData(data: Seq[ByteString]): ReferenceWriteMessage
- def withMetrics(metrics: Map[String, Long]): ReferenceWriteMessage
Java API
Java API
When settings class has an attribute of Scala Long class, Java setter needs to take Java Long class and convert to Scala Long.
- def withMetrics(metrics: Map[String, Long]): ReferenceWriteMessage