final case class IOResult(count: Long, status: Try[Done]) extends Product with Serializable
Holds a result of an IO operation.
- count
Numeric value depending on context, for example IO operations performed or bytes processed.
- status
Status of the result. Can be either akka.Done or an exception.
- Source
- IOResult.scala
- Alphabetic
- By Inheritance
- IOResult
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
Value Members
- val count: Long
-
def
getCount: Long
Java API: Numeric value depending on context, for example IO operations performed or bytes processed.
-
def
getError: Throwable
Java API: If the IO operation resulted in an error, returns the corresponding Throwable or throws UnsupportedOperationException otherwise.
- val status: Try[Done]
-
def
wasSuccessful: Boolean
Java API: Indicates whether IO operation completed successfully or not.
- def withCount(value: Long): IOResult
- def withStatus(value: Try[Done]): IOResult