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
public abstract class Effect extends java.lang.ObjectAll tracked effects for thepekko.actor.testkit.typed.scaladsl.BehaviorTestKitandpekko.actor.testkit.typed.javadsl.BehaviorTestKitmust extend this type.Factories/types for effects are available through
pekko.actor.testkit.typed.javadsl.Effectsandpekko.actor.testkit.typed.javadsl.EffectsNot for user extension
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEffect.MessageAdapter<A,T>The behavior create a message adapter for the messages of type clazzstatic classEffect.MessageAdapter$static classEffect.NoEffectsUsed for NoEffects expectations by typestatic classEffect.NoEffects$Used to represent an empty list of effects - in other words, the behavior didn't do anything observablestatic classEffect.ReceiveTimeoutCancelledstatic classEffect.ReceiveTimeoutCancelled$static classEffect.ReceiveTimeoutSet<T>The behavior set a new receive timeout, withmessageas timeout notificationstatic classEffect.ReceiveTimeoutSet$static classEffect.Scheduled<U>The behavior usedcontext.scheduleOnceto schedulemessageto be sent totargetafterdelayFIXME what about events scheduled through the scheduler?static classEffect.Scheduled$static classEffect.Spawned<T>The behavior spawned a named child with the given behavior (and optionally specific props)static classEffect.Spawned$static classEffect.SpawnedAdapter$INTERNAL API Spawning adapters is private[pekko]static classEffect.SpawnedAnonymous<T>The behavior spawned an anonymous child with the given behavior (and optionally specific props)static classEffect.SpawnedAnonymous$static classEffect.SpawnedAnonymousAdapter$INTERNAL APIstatic classEffect.StoppedThe behavior stoppedchildNamestatic classEffect.Stopped$static classEffect.TimerCancelledstatic classEffect.TimerCancelled$static classEffect.TimerScheduled<U>static classEffect.TimerScheduled$static classEffect.Unwatched<T>The behavior stopped watchingother, throughcontext.unwatch(other)static classEffect.Unwatched$static classEffect.Watched<T>The behavior started watchingother, throughcontext.watch(other)static classEffect.Watched$static classEffect.WatchedWith<U,T>The behavior started watchingother, throughcontext.watchWith(other, message)static classEffect.WatchedWith$
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Effect.TimerScheduled$timerScheduled()
-
-
-
Method Detail
-
timerScheduled
public static Effect.TimerScheduled$ timerScheduled()
-
-