MessageFuture

cc.otavia.core.stack.MessageFuture
See theMessageFuture companion object
sealed trait MessageFuture[+R <: Reply] extends Future[R]

User interface for class MessagePromise

Type parameters

R

type of Reply

Attributes

Companion
object
Graph
Supertypes
trait Future[R]
class Object
trait Matchable
class Any

Members list

Value members

Inherited methods

def cause: Option[Throwable]

Returns the cause of the failed operation if the operation has failed.

Returns the cause of the failed operation if the operation has failed.

Attributes

Returns

The cause of the failure, if any. Otherwise None if succeeded.

Throws
IllegalStateException

if this Promise has not completed yet.

Inherited from:
Future
def causeUnsafe: Throwable

Returns the cause of the failed operation if the operation has failed.

Returns the cause of the failed operation if the operation has failed.

Attributes

Returns

The cause of the failure, if any.

Throws
IllegalStateException

if this Promise has not completed yet, or if it has been succeeded.

Inherited from:
Future
def getNow: R

Return the successful result of this asynchronous operation, if any. If the operation has not yet been completed, then this will throw IllegalStateException . If the operation has been failed with an exception, then this throw cause .

Return the successful result of this asynchronous operation, if any. If the operation has not yet been completed, then this will throw IllegalStateException . If the operation has been failed with an exception, then this throw cause .

Attributes

Returns

the result of this operation, if completed successfully.

Throws
IllegalStateException

if this Future or Promise has not completed yet.

Throwable

if the operation has been failed with an exception.

Inherited from:
Future
def isDone: Boolean

Return true if this operation has been completed either Promise.setSuccess successfully, Promise.setFailure unsuccessfully.

Return true if this operation has been completed either Promise.setSuccess successfully, Promise.setFailure unsuccessfully.

Attributes

Returns

true if this operation has completed, otherwise false.

Inherited from:
Future
def isFailed: Boolean

Returns true if and only if the operation was completed and failed.

Returns true if and only if the operation was completed and failed.

Attributes

Inherited from:
Future
def isSuccess: Boolean

Returns true if and only if the operation was completed successfully.

Returns true if and only if the operation was completed successfully.

Attributes

Inherited from:
Future
final def isTimeout: Boolean

Returns true if and only if the operation was completed and failed with TimeoutException.

Returns true if and only if the operation was completed and failed with TimeoutException.

Attributes

Inherited from:
Future