Class

swaydb.test

TestActor

Related Doc: package test

Permalink

case class TestActor[T]()(implicit ec: ExecutionContext) extends Actor[T, Unit] with Product with Serializable

TO-DO - Move this to a test module.

Linear Supertypes
Serializable, Serializable, Product, Equals, Actor[T, Unit], LazyLogging, ActorRef[T, Unit], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TestActor
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Actor
  7. LazyLogging
  8. ActorRef
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TestActor()(implicit ec: ExecutionContext)

    Permalink

Value Members

  1. def !(message: T): Unit

    Permalink

    Submits message to Actor's queue and starts message execution if not already running.

    Submits message to Actor's queue and starts message execution if not already running.

    Definition Classes
    TestActorActorActorRef
  2. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clear(): Unit

    Permalink
    Definition Classes
    ActorActorRef
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  8. implicit val ec: ExecutionContext

    Permalink
  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def expectMessage(timeoutDuration: FiniteDuration = 1.second, interval: FiniteDuration = 100.millisecond): T

    Permalink
  11. def expectNoMessage(after: FiniteDuration = 100.millisecond)(implicit scheduler: Scheduler): Unit

    Permalink
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  13. def getMessage(timeoutDuration: FiniteDuration = 1.second, interval: FiniteDuration = 100.millisecond): T

    Permalink
  14. def hasMessages: Boolean

    Permalink
    Definition Classes
    TestActorActorRef
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. lazy val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    LazyLogging
  17. def merge[T2 <: T](actor: ActorRef[T2, Unit]): ActorRef[T2, Unit]

    Permalink

    Returns an Actor that merges both Actor and sends messages to both Actors.

    Returns an Actor that merges both Actor and sends messages to both Actors.

    Currently does not guarantee the order in which the messages will get processed by both actors. Is order guarantee required?

    Definition Classes
    ActorRef
  18. def messageCount: Int

    Permalink
    Definition Classes
    ActorActorRef
  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  22. def recoverError[M <: T, E](f: (M, IO[E, Actor.Error], Actor[T, Unit]) ⇒ Unit)(implicit arg0: ExceptionHandler[E]): ActorRef[T, Unit]

    Permalink
    Definition Classes
    ActorActorRef
  23. def recoverException[M <: T](f: (M, IO[Throwable, Actor.Error], Actor[T, Unit]) ⇒ Unit): ActorRef[T, Unit]

    Permalink
    Definition Classes
    ActorRef
  24. def schedule(message: T, delay: FiniteDuration)(implicit scheduler: Scheduler): TimerTask

    Permalink

    Sends a message to this actor with delay

    Sends a message to this actor with delay

    Definition Classes
    TestActorActorActorRef
  25. def send(message: T): Unit

    Permalink
    Definition Classes
    ActorRef
  26. val state: Unit

    Permalink
    Definition Classes
    Actor
  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  28. def terminate(): Unit

    Permalink
    Definition Classes
    ActorActorRef
  29. def terminateAndClear(): Unit

    Permalink
    Definition Classes
    ActorActorRef
  30. def totalWeight: Int

    Permalink
    Definition Classes
    ActorActorRef
  31. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Actor[T, Unit]

Inherited from LazyLogging

Inherited from ActorRef[T, Unit]

Inherited from AnyRef

Inherited from Any

Ungrouped