object Effects
Factories for behavior effects for BehaviorTestKit, each effect has a suitable equals and can be used to compare actual effects to expected ones.
- Source
- Effects.scala
- Alphabetic
- By Inheritance
- Effects
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
def
noEffects(): NoEffects
Used to represent an empty list of effects - in other words, the behavior didn't do anything observable
-
def
receiveTimeoutSet[T](d: Duration, message: T): ReceiveTimeoutSet[T]
The behavior set a new receive timeout, with
message
as timeout notification -
def
scheduled[U](delay: Duration, target: typed.ActorRef[U], message: U): Scheduled[U]
The behavior used
context.schedule
to schedulemessage
to be sent totarget
afterdelay
FIXME what about events scheduled through the scheduler? -
def
spawned[T](behavior: Behavior[T], childName: String, props: typed.Props, ref: typed.ActorRef[T]): Spawned[T]
The behavior spawned a named child with the given behavior and specific props
-
def
spawned[T](behavior: Behavior[T], childName: String, props: typed.Props): Spawned[T]
The behavior spawned a named child with the given behavior and specific props
-
def
spawned[T](behavior: Behavior[T], childName: String, ref: typed.ActorRef[T]): Spawned[T]
The behavior spawned a named child with the given behavior with no specific props
-
def
spawned[T](behavior: Behavior[T], childName: String): Spawned[T]
The behavior spawned a named child with the given behavior with no specific props
-
def
spawnedAnonymous[T](behavior: Behavior[T], props: typed.Props, ref: typed.ActorRef[T]): SpawnedAnonymous[T]
The behavior spawned an anonymous child with the given behavior with specific props
-
def
spawnedAnonymous[T](behavior: Behavior[T], props: typed.Props): SpawnedAnonymous[T]
The behavior spawned an anonymous child with the given behavior with specific props
-
def
spawnedAnonymous[T](behavior: Behavior[T], ref: typed.ActorRef[T]): SpawnedAnonymous[T]
The behavior spawned an anonymous child with the given behavior with no specific props
-
def
spawnedAnonymous[T](behavior: Behavior[T]): SpawnedAnonymous[T]
The behavior spawned an anonymous child with the given behavior with no specific props
-
def
stopped(childName: String): Stopped
The behavior stopped
childName
-
def
unwatched[T](other: typed.ActorRef[T]): Unwatched[T]
The behavior started watching
other
, throughcontext.unwatch(other)
-
def
watched[T](other: typed.ActorRef[T]): Watched[T]
The behavior started watching
other
, throughcontext.watch(other)