Packages

final class StatusReply[+T] extends AnyRef

Generic top-level message type for replies that signal failure or success. Convenient to use together with the askWithStatus ask variants.

Create using the factory methods StatusReply#success and StatusReply#error.

Akka contains predefined serializers for the wrapper type and the textual error messages.

T

the type of value a successful reply would have

Source
StatusReply.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. StatusReply
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. def equals(other: Any): Boolean
    Definition Classes
    StatusReply → AnyRef → Any
  2. def getError: Throwable

    Java API: returns the exception if the reply is a failure, or throws an exception if not.

  3. def getValue: T

    Java API: in the case of a successful reply returns the value, if the reply was not successful the exception the failure was created with is thrown

  4. def hashCode(): Int
    Definition Classes
    StatusReply → AnyRef → Any
  5. def isError: Boolean
  6. def isSuccess: Boolean
  7. def toString(): String
    Definition Classes
    StatusReply → AnyRef → Any