abstract class CompletableFutureStateMachine extends AsyncStateMachine[CompletableFuture[AnyRef], Try[AnyRef]] with Runnable with BiConsumer[AnyRef, Throwable]
- Alphabetic
- By Inheritance
- CompletableFutureStateMachine
- BiConsumer
- Runnable
- AsyncStateMachine
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
- new CompletableFutureStateMachine(executor: Executor)
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from CompletableFutureStateMachine to any2stringadd[CompletableFutureStateMachine] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (CompletableFutureStateMachine, B)
- Implicit
- This member is added by an implicit conversion from CompletableFutureStateMachine to ArrowAssoc[CompletableFutureStateMachine] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
accept(value: AnyRef, throwable: Throwable): Unit
- Definition Classes
- CompletableFutureStateMachine → BiConsumer
-
def
andThen(arg0: BiConsumer[_ >: AnyRef, _ >: Throwable]): BiConsumer[AnyRef, Throwable]
- Definition Classes
- BiConsumer
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
completeFailure(t: Throwable): Unit
Complete the state machine with the given failure.
Complete the state machine with the given failure.
- Attributes
- protected
- Definition Classes
- CompletableFutureStateMachine → AsyncStateMachine
-
def
completeSuccess(value: AnyRef): Unit
Complete the state machine with the given value.
Complete the state machine with the given value.
- Attributes
- protected
- Definition Classes
- CompletableFutureStateMachine → AsyncStateMachine
-
def
ensuring(cond: (CompletableFutureStateMachine) ⇒ Boolean, msg: ⇒ Any): CompletableFutureStateMachine
- Implicit
- This member is added by an implicit conversion from CompletableFutureStateMachine to Ensuring[CompletableFutureStateMachine] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (CompletableFutureStateMachine) ⇒ Boolean): CompletableFutureStateMachine
- Implicit
- This member is added by an implicit conversion from CompletableFutureStateMachine to Ensuring[CompletableFutureStateMachine] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): CompletableFutureStateMachine
- Implicit
- This member is added by an implicit conversion from CompletableFutureStateMachine to Ensuring[CompletableFutureStateMachine] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): CompletableFutureStateMachine
- Implicit
- This member is added by an implicit conversion from CompletableFutureStateMachine to Ensuring[CompletableFutureStateMachine] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from CompletableFutureStateMachine to StringFormat[CompletableFutureStateMachine] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getCompleted(f: CompletableFuture[AnyRef]): Try[AnyRef]
Extract the result of the given future if it is complete, or
null
if it is incomplete.Extract the result of the given future if it is complete, or
null
if it is incomplete.- Attributes
- protected
- Definition Classes
- CompletableFutureStateMachine → AsyncStateMachine
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
onComplete(f: CompletableFuture[AnyRef]): Unit
Register the state machine as a completion callback of the given future.
Register the state machine as a completion callback of the given future.
- Attributes
- protected
- Definition Classes
- CompletableFutureStateMachine → AsyncStateMachine
-
var
result$async: CompletableFuture[AnyRef]
- Attributes
- protected
-
def
run(): Unit
- Definition Classes
- CompletableFutureStateMachine → Runnable
- def start(): CompletableFuture[AnyRef]
-
def
state: Int
Retrieve the current value of the state variable
Retrieve the current value of the state variable
- Attributes
- protected
- Definition Classes
- CompletableFutureStateMachine → AsyncStateMachine
-
def
state_=(s: Int): Unit
Assign
i
to the state variableAssign
i
to the state variable- Attributes
- protected
- Definition Classes
- CompletableFutureStateMachine → AsyncStateMachine
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
tryGet(tr: Try[AnyRef]): AnyRef
Extract the success value of the given future.
Extract the success value of the given future. If the state machine detects a failure it may complete the async block and return
this
as a sentinel value to indicate that the caller (the state machine dispatch loop) should immediately exit.- Attributes
- protected
- Definition Classes
- CompletableFutureStateMachine → AsyncStateMachine
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
→[B](y: B): (CompletableFutureStateMachine, B)
- Implicit
- This member is added by an implicit conversion from CompletableFutureStateMachine to ArrowAssoc[CompletableFutureStateMachine] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc