IOResult

org.apache.pekko.stream.IOResult
See theIOResult companion object
final case class IOResult(count: Long, status: Try[Done])

Holds a result of an IO operation.

Value parameters

count

Numeric value depending on context, for example IO operations performed or bytes processed.

status

Status of the result. Can be either pekko.Done or an exception.

Attributes

Companion
object
Source
IOResult.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def getCount: Long

Java API: Numeric value depending on context, for example IO operations performed or bytes processed.

Java API: Numeric value depending on context, for example IO operations performed or bytes processed.

Attributes

Source
IOResult.scala

Java API: If the IO operation resulted in an error, returns the corresponding java.lang.Throwable or throws UnsupportedOperationException otherwise.

Java API: If the IO operation resulted in an error, returns the corresponding java.lang.Throwable or throws UnsupportedOperationException otherwise.

Attributes

Source
IOResult.scala

Java API: Indicates whether IO operation completed successfully or not.

Java API: Indicates whether IO operation completed successfully or not.

Attributes

Source
IOResult.scala
def withCount(value: Long): IOResult

Creates a new IOResult with the given count and the same status.

Creates a new IOResult with the given count and the same status.

Attributes

Source
IOResult.scala
def withStatus(value: Try[Done]): IOResult

Creates a new IOResult with the given status and the same count.

Creates a new IOResult with the given status and the same count.

Attributes

Source
IOResult.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product