Class Effect
java.lang.Object
org.apache.pekko.actor.testkit.typed.Effect
- Direct Known Subclasses:
Effect.MessageAdapter,Effect.NoEffects,Effect.ReceiveTimeoutCancelled,Effect.ReceiveTimeoutSet,Effect.Scheduled,Effect.Spawned,Effect.SpawnedAnonymous,Effect.Stopped,Effect.TimerCancelled,Effect.TimerScheduled,Effect.Unwatched,Effect.Watched,Effect.WatchedWith
All tracked effects for the
pekko.actor.testkit.typed.scaladsl.BehaviorTestKit and
pekko.actor.testkit.typed.javadsl.BehaviorTestKit must extend this type.
Factories/types for effects are available through pekko.actor.testkit.typed.javadsl.Effects
and pekko.actor.testkit.typed.javadsl.Effects
Not for user extension
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe behavior create a message adapter for the messages of type clazzstatic classstatic classUsed for NoEffects expectations by typestatic classUsed to represent an empty list of effects - in other words, the behavior didn't do anything observablestatic classstatic classstatic final classThe behavior set a new receive timeout, withmessageas timeout notificationstatic classstatic final classThe behavior usedcontext.scheduleOnceto schedulemessageto be sent totargetafterdelayFIXME what about events scheduled through the scheduler?static classstatic final classThe behavior spawned a named child with the given behavior (and optionally specific props)static classstatic classINTERNAL API Spawning adapters is private[pekko]static final classThe behavior spawned an anonymous child with the given behavior (and optionally specific props)static classstatic classINTERNAL APIstatic final classThe behavior stoppedchildNamestatic classstatic final classstatic classstatic final classstatic classstatic final classThe behavior stopped watchingother, throughcontext.unwatch(other)static classstatic final classThe behavior started watchingother, throughcontext.watch(other)static classstatic final classThe behavior started watchingother, throughcontext.watchWith(other, message)static class -
Method Summary
-
Method Details
-
timerScheduled
-