public final class IOResult
extends java.lang.Object
implements scala.Product, scala.Serializable
param: count Numeric value depending on context, for example IO operations performed or bytes processed.
param: status Status of the result. Can be either Done
or an exception.
Constructor and Description |
---|
IOResult(long count,
scala.util.Try<Done> status) |
Modifier and Type | Method and Description |
---|---|
abstract static boolean |
canEqual(java.lang.Object that) |
long |
count() |
static IOResult |
createFailed(long count,
java.lang.Throwable ex)
JAVA API: Creates failed IOResult, `count` should be the number of bytes (or other unit, please document in your APIs) processed before failing
|
static IOResult |
createSuccessful(long count)
JAVA API: Creates successful IOResult
|
abstract static boolean |
equals(java.lang.Object that) |
long |
getCount()
Java API: Numeric value depending on context, for example IO operations performed or bytes processed.
|
java.lang.Throwable |
getError()
Java API: If the IO operation resulted in an error, returns the corresponding
Throwable
or throws UnsupportedOperationException otherwise. |
abstract static int |
productArity() |
abstract static java.lang.Object |
productElement(int n) |
static scala.collection.Iterator<java.lang.Object> |
productIterator() |
static java.lang.String |
productPrefix() |
scala.util.Try<Done> |
status() |
boolean |
wasSuccessful()
Java API: Indicates whether IO operation completed successfully or not.
|
IOResult |
withCount(long value) |
IOResult |
withStatus(scala.util.Try<Done> value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public IOResult(long count, scala.util.Try<Done> status)
public static IOResult createSuccessful(long count)
public static IOResult createFailed(long count, java.lang.Throwable ex)
public abstract static boolean canEqual(java.lang.Object that)
public abstract static boolean equals(java.lang.Object that)
public abstract static java.lang.Object productElement(int n)
public abstract static int productArity()
public static scala.collection.Iterator<java.lang.Object> productIterator()
public static java.lang.String productPrefix()
public long count()
public scala.util.Try<Done> status()
public IOResult withCount(long value)
public long getCount()
public boolean wasSuccessful()
public java.lang.Throwable getError()
Throwable
or throws UnsupportedOperationException
otherwise.