Package akka.stream
Class IOResult
- java.lang.Object
 - 
- akka.stream.IOResult
 
 
- 
- All Implemented Interfaces:
 java.io.Serializable,scala.Equals,scala.Product
public final class IOResult extends java.lang.Object implements scala.Product, java.io.SerializableHolds a result of an IO operation.param: count Numeric value depending on context, for example IO operations performed or bytes processed. param: status Status of the result. Can be either
Doneor an exception.- See Also:
 - Serialized Form
 
 
- 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static IOResultapply(long count)static IOResultapply(long count, scala.util.Try<Done> status)booleancanEqual(java.lang.Object x$1)IOResultcopy(long count, scala.util.Try<Done> status)longcopy$default$1()scala.util.Try<Done>copy$default$2()longcount()static IOResultcreateFailed(long count, java.lang.Throwable ex)Deprecated.use IOOperationIncompleteException.static IOResultcreateSuccessful(long count)JAVA API: Creates successful IOResultbooleanequals(java.lang.Object x$1)longgetCount()Java API: Numeric value depending on context, for example IO operations performed or bytes processed.java.lang.ThrowablegetError()Deprecated.status is always set to Success(Done).inthashCode()intproductArity()java.lang.ObjectproductElement(int x$1)java.lang.StringproductElementName(int x$1)scala.collection.Iterator<java.lang.Object>productIterator()java.lang.StringproductPrefix()scala.util.Try<Done>status()Deprecated.status is always set to Success(Done).java.lang.StringtoString()static scala.Option<scala.Tuple2<java.lang.Object,scala.util.Try<Done>>>unapply(IOResult x$0)booleanwasSuccessful()Deprecated.status is always set to Success(Done).IOResultwithCount(long value)IOResultwithStatus(scala.util.Try<Done> value)Deprecated.status is always set to Success(Done). 
 - 
 
- 
- 
Constructor Detail
- 
IOResult
public IOResult(long count, scala.util.Try<Done> status) 
 - 
 
- 
Method Detail
- 
apply
public static IOResult apply(long count)
 
- 
createSuccessful
public static IOResult createSuccessful(long count)
JAVA API: Creates successful IOResult 
- 
createFailed
public static IOResult createFailed(long count, java.lang.Throwable ex)
Deprecated.use IOOperationIncompleteException. Since 2.6.0. 
- 
unapply
public static scala.Option<scala.Tuple2<java.lang.Object,scala.util.Try<Done>>> unapply(IOResult x$0)
 
- 
count
public long count()
 
- 
status
public scala.util.Try<Done> status()
Deprecated.status is always set to Success(Done). Since 2.6.0. 
- 
withCount
public IOResult withCount(long value)
 
- 
withStatus
public IOResult withStatus(scala.util.Try<Done> value)
Deprecated.status is always set to Success(Done). Since 2.6.0. 
- 
getCount
public long getCount()
Java API: Numeric value depending on context, for example IO operations performed or bytes processed. 
- 
wasSuccessful
public boolean wasSuccessful()
Deprecated.status is always set to Success(Done). Since 2.6.0.Java API: Indicates whether IO operation completed successfully or not. 
- 
getError
public java.lang.Throwable getError()
Deprecated.status is always set to Success(Done). Since 2.6.0.Java API: If the IO operation resulted in an error, returns the correspondingThrowableor throwsUnsupportedOperationExceptionotherwise. 
- 
copy$default$1
public long copy$default$1()
 
- 
copy$default$2
public scala.util.Try<Done> copy$default$2()
 
- 
productPrefix
public java.lang.String productPrefix()
- Specified by:
 productPrefixin interfacescala.Product
 
- 
productArity
public int productArity()
- Specified by:
 productArityin interfacescala.Product
 
- 
productElement
public java.lang.Object productElement(int x$1)
- Specified by:
 productElementin interfacescala.Product
 
- 
productIterator
public scala.collection.Iterator<java.lang.Object> productIterator()
- Specified by:
 productIteratorin interfacescala.Product
 
- 
canEqual
public boolean canEqual(java.lang.Object x$1)
- Specified by:
 canEqualin interfacescala.Equals
 
- 
productElementName
public java.lang.String productElementName(int x$1)
- Specified by:
 productElementNamein interfacescala.Product
 
- 
hashCode
public int hashCode()
- Overrides:
 hashCodein classjava.lang.Object
 
- 
toString
public java.lang.String toString()
- Overrides:
 toStringin classjava.lang.Object
 
- 
equals
public boolean equals(java.lang.Object x$1)
- Specified by:
 equalsin interfacescala.Equals- Overrides:
 equalsin classjava.lang.Object
 
 - 
 
 -