final class ReferenceReadResult extends AnyRef
Use "Read" in message data types to signify that the message was read from outside.
The constructor is INTERNAL API, but you may construct instances for testing by using pekko.stream.connectors.reference.testkit.MessageFactory.
- Source
- model.scala
- Alphabetic
- By Inheritance
- ReferenceReadResult
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- val bytesRead: Try[Int]
- val data: Seq[ByteString]
- def getBytesRead(): OptionalInt
Java API
Java API
If the model class is scala.util.Try, then two getters should be created. One for getting the value, and another for getting the exception.
Return bytes read wrapped in OptionalInt if the Try contains a value, otherwise return empty Optional.
- def getBytesReadFailure(): Optional[Throwable]
Java API
Java API
Return the exception wrapped in Optional if the Try contains a Failure, otherwise return empty Optional.
- 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 toString(): String
- Definition Classes
- ReferenceReadResult → AnyRef → Any