Package akka.actor.typed
Class Behavior.BehaviorDecorators$
- java.lang.Object
-
- akka.actor.typed.Behavior.BehaviorDecorators$
-
-
Field Summary
Fields Modifier and Type Field Description static Behavior.BehaviorDecorators$
MODULE$
Static reference to the singleton instance of this Scala object.
-
Constructor Summary
Constructors Constructor Description BehaviorDecorators$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> boolean
equals$extension(Behavior.BehaviorDecorators<T> $this, java.lang.Object x$1)
<T> int
hashCode$extension(Behavior.BehaviorDecorators<T> $this)
<U,T>
Behavior<U>widen$extension(Behavior.BehaviorDecorators<T> $this, scala.PartialFunction<U,T> matcher)
Widen the wrapped Behavior by placing a funnel in front of it: the supplied PartialFunction decides which message to pull in (those that it is defined at) and may transform the incoming message to place them into the wrapped Behavior’s type hierarchy.
-
-
-
Field Detail
-
MODULE$
public static final Behavior.BehaviorDecorators$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
widen$extension
public final <U,T> Behavior<U> widen$extension(Behavior.BehaviorDecorators<T> $this, scala.PartialFunction<U,T> matcher)
Widen the wrapped Behavior by placing a funnel in front of it: the supplied PartialFunction decides which message to pull in (those that it is defined at) and may transform the incoming message to place them into the wrapped Behavior’s type hierarchy. Signals are not transformed.Example:
receive[String] { (ctx, msg) => println(msg); same }.widen[Number] { case b: BigDecimal => s"BigDecimal($b)" case i: BigInteger => s"BigInteger($i)" // all other kinds of Number will be `unhandled` }
Scheduled messages via
TimerScheduler
can currently not be used together withwiden
, see issue #25318.- Parameters:
$this
- (undocumented)matcher
- (undocumented)- Returns:
- (undocumented)
-
hashCode$extension
public final <T> int hashCode$extension(Behavior.BehaviorDecorators<T> $this)
-
equals$extension
public final <T> boolean equals$extension(Behavior.BehaviorDecorators<T> $this, java.lang.Object x$1)
-
-