object Behavior
- Source
- Behavior.scala
- Alphabetic
- By Inheritance
- Behavior
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- implicit final class BehaviorDecorators[Inner] extends AnyVal
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def canonicalize[T](behavior: Behavior[T], current: Behavior[T], ctx: TypedActorContext[T]): Behavior[T]
Given a possibly special behavior (same or unhandled) and a “current” behavior (which defines the meaning of encountering a
same
behavior) this method computes the next behavior, suitable for passing a message or signal.Given a possibly special behavior (same or unhandled) and a “current” behavior (which defines the meaning of encountering a
same
behavior) this method computes the next behavior, suitable for passing a message or signal.- Annotations
- @tailrec()
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def existsInStack[T](behavior: Behavior[T])(p: (Behavior[T]) => Boolean): Boolean
Go through the behavior stack and apply a predicate to see if any nested behavior satisfies it.
Go through the behavior stack and apply a predicate to see if any nested behavior satisfies it. The stack must not contain any unstarted deferred behavior or an
IllegalArgumentException
will be thrown. - final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def interpretMessage[T](behavior: Behavior[T], ctx: TypedActorContext[T], msg: T): Behavior[T]
Execute the behavior with the given message.
- def interpretSignal[T](behavior: Behavior[T], ctx: TypedActorContext[T], signal: Signal): Behavior[T]
Execute the behavior with the given signal.
- def isAlive[T](behavior: Behavior[T]): Boolean
Returns true if the given behavior is not stopped.
- def isDeferred[T](behavior: Behavior[T]): Boolean
Returns true if the given behavior is deferred.
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isUnhandled[T](behavior: Behavior[T]): Boolean
Returns true if the given behavior is the special
unhandled
marker. - final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def start[T](behavior: Behavior[T], ctx: TypedActorContext[T]): Behavior[T]
Starts deferred behavior and nested deferred behaviors until all deferred behaviors in the stack are started and then the resulting behavior is returned.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def validateAsInitial[T](behavior: Behavior[T]): Behavior[T]
Validate the given behavior as a suitable initial actor behavior; most notably the behavior can neither be
same
norunhandled
.Validate the given behavior as a suitable initial actor behavior; most notably the behavior can neither be
same
norunhandled
. Starting out with aStopped
behavior is allowed, though. - final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])