Class/Object

swaydb

Actor

Related Docs: object Actor | package swaydb

Permalink

class Actor[-T, S] extends ActorRef[T, S] with LazyLogging

Self Type
Actor[T, S]
Linear Supertypes
LazyLogging, ActorRef[T, S], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Actor
  2. LazyLogging
  3. ActorRef
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Actor(name: String, state: S, queue: ActorQueue[(T, Int)], stashCapacity: Int, weigher: (T) ⇒ Int, cached: Boolean, execution: (T, Actor[T, S]) ⇒ Unit, scheduler: CacheNoIO[Unit, Scheduler], interval: Option[Interval], preTerminate: Option[(Actor[T, S]) ⇒ Unit], postTerminate: Option[(Actor[T, S]) ⇒ Unit], recovery: Option[(T, IO[Throwable, Actor.Error], Actor[T, S]) ⇒ Unit])(implicit executionContext: ExecutionContext)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

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

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

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

    Permalink
    Definition Classes
    Any
  5. def ask[R, X[_]](message: (ActorRef[R, Unit]) ⇒ T, delay: FiniteDuration)(implicit bag: Async[X]): Task[R, X]

    Permalink
    Definition Classes
    ActorActorRef
  6. def ask[R, X[_]](message: (ActorRef[R, Unit]) ⇒ T)(implicit bag: Async[X]): X[R]

    Permalink
    Definition Classes
    ActorActorRef
  7. def clear(): Unit

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  11. implicit val executionContext: ExecutionContext

    Permalink
    Definition Classes
    ActorActorRef
  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def hasMessages: Boolean

    Permalink
    Definition Classes
    ActorRef
  15. def hasRecovery: Boolean

    Permalink
    Definition Classes
    ActorActorRef
  16. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  17. def isEmpty: Boolean

    Permalink
    Definition Classes
    ActorActorRef
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. def isNotEmpty: Boolean

    Permalink
    Definition Classes
    ActorRef
    Annotations
    @inline()
  20. def isTerminated: Boolean

    Permalink
    Definition Classes
    ActorActorRef
  21. lazy val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    LazyLogging
  22. def messageCount: Int

    Permalink
    Definition Classes
    ActorActorRef
  23. val name: String

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

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

    Permalink
    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  27. def onPostTerminate(f: (Actor[T, S]) ⇒ Unit): ActorRef[T, S]

    Permalink
    Definition Classes
    ActorActorRef
  28. def onPreTerminate(f: (Actor[T, S]) ⇒ Unit): ActorRef[T, S]

    Permalink
    Definition Classes
    ActorActorRef
  29. def receiveAllForce[BAG[_]]()(implicit bag: Bag[BAG]): BAG[Unit]

    Permalink

    Forces the Actor to process all queued messages.

    Forces the Actor to process all queued messages.

    Definition Classes
    ActorActorRef
  30. def recover[M <: T, E](f: (M, IO[E, Actor.Error], Actor[T, S]) ⇒ Unit)(implicit arg0: ExceptionHandler[E]): ActorRef[T, S]

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

    Permalink
    Definition Classes
    ActorRef
  32. def send(message: T): Unit

    Permalink
    Definition Classes
    ActorActorRef
  33. def send(message: T, delay: FiniteDuration): TimerTask

    Permalink

    Sends a message to this actor with delay

    Sends a message to this actor with delay

    Definition Classes
    ActorActorRef
  34. val state: S

    Permalink
  35. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  36. def terminate[BAG[_]]()(implicit bag: Bag[BAG]): BAG[Unit]

    Permalink

    We cannot invoke terminate from within the Actor itself via block because busy is already set to true within receive.

    We cannot invoke terminate from within the Actor itself via block because busy is already set to true within receive. AtomicThreadLocalBoolean can be used instead to allow calling terminating from within the Actor itself but this is currently not required anywhere.

    Currently there is no use to terminate from within the Actor itself.

    Definition Classes
    ActorActorRef
  37. def terminateAfter(timeout: FiniteDuration): ActorRef[T, S]

    Permalink
    Definition Classes
    ActorActorRef
  38. def terminateAndClear[BAG[_]]()(implicit bag: Bag[BAG]): BAG[Unit]

    Permalink
    Definition Classes
    ActorActorRef
  39. def terminateAndRecover[BAG[_]]()(implicit bag: Bag[BAG]): BAG[Unit]

    Permalink

    Terminates the Actor and applies recover function to all queued messages.

    Terminates the Actor and applies recover function to all queued messages.

    If recover function is not specified then all queues messages are cleared.

    Definition Classes
    ActorActorRef
  40. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  41. def totalWeight: Int

    Permalink
    Definition Classes
    ActorActorRef
  42. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long, arg1: Int): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. def whileNotBusy[BAG[_], A](continueIfNonEmpty: Boolean)(releaseFunction: ⇒ A)(implicit bag: Bag[BAG]): BAG[A]

    Permalink

    Release function will get executed when the thread was able to set busy to true but busy.set(false) should be invoked by the input releaseFunction similar to *) function under try & finally.

    Release function will get executed when the thread was able to set busy to true but busy.set(false) should be invoked by the input releaseFunction similar to *) function under try & finally.

    continueIfNonEmpty

    will continue executing the function while the queue is non-empty.

    Annotations
    @inline()

Inherited from LazyLogging

Inherited from ActorRef[T, S]

Inherited from AnyRef

Inherited from Any

Ungrouped