Instance Constructors
-
new
HawtDispatcher
(aggregate: Boolean, parent: DispatchQueue)
Value Members
-
def
!=
(arg0: AnyRef): Boolean
-
def
!=
(arg0: Any): Boolean
-
def
##
(): Int
-
def
==
(arg0: AnyRef): Boolean
-
def
==
(arg0: Any): Boolean
-
val
active
: Switch
-
val
aggregate
: Boolean
-
def
asInstanceOf
[T0]
: T0
-
def
attach
(actorRef: ActorRef): Unit
-
def
clone
(): AnyRef
-
def
createMailbox
(actorRef: ActorRef): AnyRef
-
def
detach
(actorRef: ActorRef): Unit
-
def
eq
(arg0: AnyRef): Boolean
-
def
equals
(arg0: Any): Boolean
-
def
finalize
(): Unit
-
val
futures
: AtomicLong
-
def
getClass
(): java.lang.Class[_]
-
val
guard
: ReentrantGuard
-
def
hashCode
(): Int
-
def
isInstanceOf
[T0]
: Boolean
-
def
mailboxSize
(actorRef: ActorRef): Int
-
def
ne
(arg0: AnyRef): Boolean
-
def
notify
(): Unit
-
def
notifyAll
(): Unit
-
val
parent
: DispatchQueue
-
def
pendingFutures
: Long
-
def
resume
(actorRef: ActorRef): Unit
-
def
stopAllAttachedActors
: Unit
-
def
suspend
(actorRef: ActorRef): Unit
-
def
synchronized
[T0]
(arg0: ⇒ T0): T0
-
def
toString
(): String
-
val
uuids
: ConcurrentSkipListSet[Uuid]
-
def
wait
(): Unit
-
def
wait
(arg0: Long, arg1: Int): Unit
-
def
wait
(arg0: Long): Unit
Inherited from MessageDispatcher
Inherited from AnyRef
Inherited from Any
A HawtDispatch based MessageDispatcher. Actors with this dispatcher are executed on the HawtDispatch fixed sized thread pool. The number of of threads will match the number of cores available on your system.
Actors using this dispatcher are restricted to only executing non blocking operations. The actor cannot synchronously call another actor or call 3rd party libraries that can block for a long time. You should use non blocking IO APIs instead of blocking IO apis to avoid blocking that actor for an extended amount of time.
This dispatcher delivers messages to the actors in the order that they were producer at the sender.
HawtDispatch supports processing Non blocking Socket IO in both the reactor and proactor styles. For more details, see the
HawtDispacherEchoServer.scalaexample.