Class BehaviorImpl
java.lang.Object
org.apache.pekko.actor.typed.internal.BehaviorImpl
INTERNAL API
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classSimilar toBehaviorImpl.ReceiveBehaviorhoweveronMessagedoes not accept context.static classstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> BehaviorImpl.ContextAs<T>ContextAs(TypedActorContext<T> ctx) static <T> Behavior<T>empty()static <T> Behavior<T>static <T> Behavior<T>ignore()static <O,I> Behavior<O> intercept(scala.Function0<BehaviorInterceptor<O, I>> interceptor, Behavior<I> behavior) Intercept messages and signals for abehaviorby first passing them to apekko.actor.typed.BehaviorInterceptorstatic <T> Behavior<T>same()static <T> Behavior<T>stopped()static <T> Behavior<T>stopped(scala.Function0<scala.runtime.BoxedUnit> postStop) static org.apache.pekko.actor.typed.internal.BehaviorImpl.StoppedBehavior<scala.runtime.Nothing$>static <O,I> Behavior<O> transformMessages(Behavior<I> behavior, scala.PartialFunction<O, I> matcher, scala.reflect.ClassTag<O> evidence$1) static <T> Behavior<T>static scala.PartialFunction<scala.Tuple2<TypedActorContext<scala.runtime.Nothing$>,Signal>, Behavior<scala.runtime.Nothing$>>
-
Constructor Details
-
BehaviorImpl
public BehaviorImpl()
-
-
Method Details
-
ContextAs
-
transformMessages
-
same
-
unhandled
-
stopped
-
stopped
-
empty
-
ignore
-
failed
-
unhandledSignal
public static scala.PartialFunction<scala.Tuple2<TypedActorContext<scala.runtime.Nothing$>,Signal>, unhandledSignal()Behavior<scala.runtime.Nothing$>> -
StoppedBehavior
public static org.apache.pekko.actor.typed.internal.BehaviorImpl.StoppedBehavior<scala.runtime.Nothing$> StoppedBehavior() -
intercept
public static <O,I> Behavior<O> intercept(scala.Function0<BehaviorInterceptor<O, I>> interceptor, Behavior<I> behavior) Intercept messages and signals for abehaviorby first passing them to apekko.actor.typed.BehaviorInterceptorWhen a behavior returns a new behavior as a result of processing a signal or message and that behavior already contains the same interceptor (defined by the
isSamemethod on theBehaviorInterceptor) only the innermost interceptor is kept. This is to protect against stack overflow when recursively defining behaviors.
-