Packages

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
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ReferenceReadResult
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. val bytesRead: Try[Int]
  2. val data: Seq[ByteString]
  3. 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.

  4. def getBytesReadFailure(): Optional[Throwable]

    Java API

    Java API

    Return the exception wrapped in Optional if the Try contains a Failure, otherwise return empty Optional.

  5. 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.

  6. def toString(): String
    Definition Classes
    ReferenceReadResult → AnyRef → Any