object Actor
- Alphabetic
- By Inheritance
- Actor
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply[T, S](state: S)(execution: (T, Actor[T, S]) ⇒ Unit)(implicit ec: ExecutionContext, queueOrder: QueueOrder[T]): ActorRef[T, S]
-
def
apply[T](execution: (T, Actor[T, Unit]) ⇒ Unit)(implicit ec: ExecutionContext, queueOrder: QueueOrder[T]): ActorRef[T, Unit]
Basic stateless Actor that processes all incoming messages sequentially.
Basic stateless Actor that processes all incoming messages sequentially.
On each message send (!) the Actor is woken up if it's not already running.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def cache[T, S](state: S, stashCapacity: Int, weigher: (T) ⇒ Int)(execution: (T, Actor[T, S]) ⇒ Unit)(implicit ec: ExecutionContext, queueOrder: QueueOrder[T]): ActorRef[T, S]
- def cache[T](stashCapacity: Int, weigher: (T) ⇒ Int)(execution: (T, Actor[T, Unit]) ⇒ Unit)(implicit ec: ExecutionContext, queueOrder: QueueOrder[T]): ActorRef[T, Unit]
- def cacheFromConfig[T, S](config: ActorConfig, state: S, stashCapacity: Int, weigher: (T) ⇒ Int)(execution: (T, Actor[T, S]) ⇒ Unit): ActorRef[T, S]
- def cacheFromConfig[T](config: ActorConfig, stashCapacity: Int, weigher: (T) ⇒ Int)(execution: (T, Actor[T, Unit]) ⇒ Unit): ActorRef[T, Unit]
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
timer[T, S](state: S, stashCapacity: Int, interval: FiniteDuration)(execution: (T, Actor[T, S]) ⇒ Unit)(implicit scheduler: Scheduler, queueOrder: QueueOrder[T]): ActorRef[T, S]
Processes messages at regular intervals.
Processes messages at regular intervals.
If there are no messages in the queue the timer is stopped and restarted only when a new message is added the queue.
- def timer[T](stashCapacity: Int, interval: FiniteDuration)(execution: (T, Actor[T, Unit]) ⇒ Unit)(implicit scheduler: Scheduler, queueOrder: QueueOrder[T]): ActorRef[T, Unit]
- def timerCache[T, S](state: S, stashCapacity: Int, weigher: (T) ⇒ Int, interval: FiniteDuration)(execution: (T, Actor[T, S]) ⇒ Unit)(implicit scheduler: Scheduler, queueOrder: QueueOrder[T]): ActorRef[T, S]
- def timerCache[T](stashCapacity: Int, weigher: (T) ⇒ Int, interval: FiniteDuration)(execution: (T, Actor[T, Unit]) ⇒ Unit)(implicit scheduler: Scheduler, queueOrder: QueueOrder[T]): ActorRef[T, Unit]
-
def
timerLoop[T, S](state: S, stashCapacity: Int, interval: FiniteDuration)(execution: (T, Actor[T, S]) ⇒ Unit)(implicit scheduler: Scheduler, queueOrder: QueueOrder[T]): ActorRef[T, S]
Checks the message queue for new messages at regular intervals indefinitely and processes them if the queue is non-empty.
Checks the message queue for new messages at regular intervals indefinitely and processes them if the queue is non-empty.
Use .submit instead of !. There should be a type-safe way of handling this but.
-
def
timerLoop[T](stashCapacity: Int, interval: FiniteDuration)(execution: (T, Actor[T, Unit]) ⇒ Unit)(implicit scheduler: Scheduler, queueOrder: QueueOrder[T]): ActorRef[T, Unit]
Stateless timerLoop
- def timerLoopCache[T, S](state: S, stashCapacity: Int, weigher: (T) ⇒ Int, interval: FiniteDuration)(execution: (T, Actor[T, S]) ⇒ Unit)(implicit scheduler: Scheduler, queueOrder: QueueOrder[T]): ActorRef[T, S]
- def timerLoopCache[T](stashCapacity: Int, weigher: (T) ⇒ Int, interval: FiniteDuration)(execution: (T, Actor[T, Unit]) ⇒ Unit)(implicit scheduler: Scheduler, queueOrder: QueueOrder[T]): ActorRef[T, Unit]
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- def wire[T, S](impl: T, state: S)(implicit scheduler: Scheduler): ActorWire[T, S]
- def wire[T](impl: T)(implicit scheduler: Scheduler): ActorWire[T, Unit]
- def wireTimer[T, S](interval: FiniteDuration, stashCapacity: Int, impl: T, state: S)(implicit scheduler: Scheduler): ActorWire[T, S]
- def wireTimer[T](interval: FiniteDuration, stashCapacity: Int, impl: T)(implicit scheduler: Scheduler): ActorWire[T, Unit]
- object Error