Package akka.actor.typed.internal
Class BehaviorImpl
- java.lang.Object
-
- akka.actor.typed.internal.BehaviorImpl
-
public class BehaviorImpl extends java.lang.Object
Similar toBehaviorImpl.ReceiveBehavior
howeveronMessage
does not accept context. We implement it separately in order to be able to avoid wrapping each function in another function which drops the context parameter.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BehaviorImpl.ContextAs<T>
static class
BehaviorImpl.ContextAs$
static class
BehaviorImpl.OrElseBehavior<T>
static class
BehaviorImpl.ReceiveBehavior<T>
static class
BehaviorImpl.ReceiveBehavior$
static class
BehaviorImpl.ReceiveMessageBehavior<T>
static class
BehaviorImpl.ReceiveMessageBehavior$
-
Constructor Summary
Constructors Constructor Description BehaviorImpl()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> BehaviorImpl.ContextAs<T>
ContextAs(TypedActorContext<T> ctx)
static <O,I>
Behavior<O>intercept(BehaviorInterceptor<O,I> interceptor, Behavior<I> behavior)
static <O,I>
Behavior<O>widened(Behavior<I> behavior, scala.PartialFunction<O,I> matcher)
-
-
-
Method Detail
-
ContextAs
public static <T> BehaviorImpl.ContextAs<T> ContextAs(TypedActorContext<T> ctx)
-
widened
public static <O,I> Behavior<O> widened(Behavior<I> behavior, scala.PartialFunction<O,I> matcher)
-
intercept
public static <O,I> Behavior<O> intercept(BehaviorInterceptor<O,I> interceptor, Behavior<I> behavior)
-
-