Class BehaviorTestKitImpl.Interceptor$
- java.lang.Object
-
- akka.actor.typed.BehaviorInterceptor<java.lang.Object,java.lang.Object>
-
- akka.actor.testkit.typed.internal.BehaviorTestKitImpl.Interceptor$
-
- Enclosing class:
- BehaviorTestKitImpl<T>
public static class BehaviorTestKitImpl.Interceptor$ extends BehaviorInterceptor<java.lang.Object,java.lang.Object>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class akka.actor.typed.BehaviorInterceptor
BehaviorInterceptor.PreStartTarget<T>, BehaviorInterceptor.ReceiveTarget<T>, BehaviorInterceptor.SignalTarget<T>
-
-
Field Summary
Fields Modifier and Type Field Description static BehaviorTestKitImpl.Interceptor$
MODULE$
Static reference to the singleton instance of this Scala object.
-
Constructor Summary
Constructors Constructor Description Interceptor$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Behavior<java.lang.Object>
aroundReceive(TypedActorContext<java.lang.Object> ctx, java.lang.Object msg, BehaviorInterceptor.ReceiveTarget<java.lang.Object> target)
Intercept a message sent to the running actor.<T> Behavior<T>
inteceptBehaviour(Behavior<T> behavior, TypedActorContext<T> ctx)
-
Methods inherited from class akka.actor.typed.BehaviorInterceptor
aroundSignal, aroundStart, interceptMessageClass, isSame
-
-
-
-
Field Detail
-
MODULE$
public static final BehaviorTestKitImpl.Interceptor$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
aroundReceive
public Behavior<java.lang.Object> aroundReceive(TypedActorContext<java.lang.Object> ctx, java.lang.Object msg, BehaviorInterceptor.ReceiveTarget<java.lang.Object> target)
Description copied from class:BehaviorInterceptor
Intercept a message sent to the running actor. Pass the message on to the next behavior in the stack by passing it totarget.apply
, returnBehaviors.same
without invokingtarget
to filter out the message.- Specified by:
aroundReceive
in classBehaviorInterceptor<java.lang.Object,java.lang.Object>
- Returns:
- The behavior for next message or signal
-
inteceptBehaviour
public <T> Behavior<T> inteceptBehaviour(Behavior<T> behavior, TypedActorContext<T> ctx)
-
-