Object/Class

akka.actor.typed

Behavior

Related Docs: class Behavior | package typed

Permalink

object Behavior

Source
Behavior.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Behavior
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. implicit final class BehaviorDecorators[T] extends AnyVal

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def canonicalize[T](behavior: Behavior[T], current: Behavior[T], ctx: ActorContext[T]): Behavior[T]

    Permalink

    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()
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def empty[T]: Behavior[T]

    Permalink

    A behavior that treats every incoming message as unhandled.

  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  13. def ignore[T]: Behavior[T]

    Permalink

    A behavior that ignores every incoming message and returns “same”.

  14. def interpretMessage[T](behavior: Behavior[T], ctx: ActorContext[T], msg: T): Behavior[T]

    Permalink

    Execute the behavior with the given message

  15. def interpretSignal[T](behavior: Behavior[T], ctx: ActorContext[T], signal: Signal): Behavior[T]

    Permalink

    Execute the behavior with the given signal

  16. def isAlive[T](behavior: Behavior[T]): Boolean

    Permalink

    Returns true if the given behavior is not stopped.

  17. def isDeferred[T](behavior: Behavior[T]): Boolean

    Permalink

    Returns true if the given behavior is the special Unhandled marker.

  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. def isUnhandled[T](behavior: Behavior[T]): Boolean

    Permalink

    Returns true if the given behavior is the special unhandled marker.

  20. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. def same[T]: Behavior[T]

    Permalink

    Return this behavior from message processing in order to advise the system to reuse the previous behavior.

    Return this behavior from message processing in order to advise the system to reuse the previous behavior. This is provided in order to avoid the allocation overhead of recreating the current behavior where that is not necessary.

  24. def start[T](behavior: Behavior[T], ctx: ActorContext[T]): Behavior[T]

    Permalink

    Starts deferred behavior and nested deferred behaviors until a non deferred behavior is reached and that is then returned.

    Starts deferred behavior and nested deferred behaviors until a non deferred behavior is reached and that is then returned.

    Annotations
    @tailrec()
  25. def stopped[T](postStop: Behavior[T]): Behavior[T]

    Permalink

    Return this behavior from message processing to signal that this actor shall terminate voluntarily.

    Return this behavior from message processing to signal that this actor shall terminate voluntarily. If this actor has created child actors then these will be stopped as part of the shutdown procedure.

    The PostStop signal that results from stopping this actor will be passed to the given postStop behavior. All other messages and signals will effectively be ignored.

  26. def stopped[T]: Behavior[T]

    Permalink

    Return this behavior from message processing to signal that this actor shall terminate voluntarily.

    Return this behavior from message processing to signal that this actor shall terminate voluntarily. If this actor has created child actors then these will be stopped as part of the shutdown procedure.

    The PostStop signal that results from stopping this actor will be passed to the current behavior. All other messages and signals will effectively be ignored.

  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  28. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  29. def unhandled[T]: Behavior[T]

    Permalink

    Return this behavior from message processing in order to advise the system to reuse the previous behavior, including the hint that the message has not been handled.

    Return this behavior from message processing in order to advise the system to reuse the previous behavior, including the hint that the message has not been handled. This hint may be used by composite behaviors that delegate (partial) handling to other behaviors.

  30. def validateAsInitial[T](behavior: Behavior[T]): Behavior[T]

    Permalink

    Validate the given behavior as a suitable initial actor behavior; most notably the behavior can neither be same nor unhandled.

    Validate the given behavior as a suitable initial actor behavior; most notably the behavior can neither be same nor unhandled. Starting out with a Stopped behavior is allowed, though.

  31. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped