DOC: PriorityMailbox docs are wrong
from akka 2.0 doku:
-----------------------
import akka.dispatch.PriorityGenerator
import akka.dispatch.UnboundedPriorityMailbox
import com.typesafe.config.Config
val generator = PriorityGenerator { // Create a new PriorityGenerator, lower prio means more important
case 'highpriority ⇒ 0 // 'highpriority messages should be treated first if possible
case 'lowpriority ⇒ 100 // 'lowpriority messages should be treated last if possible
case PoisonPill ⇒ 1000 // PoisonPill when no other left
case otherwise ⇒ 50 // We default to 50
}
// We create a new Priority dispatcher and seed it with the priority generator
class PrioMailbox(config: Config) extends UnboundedPriorityMailbox(generator)
-----------------------
import akka.dispatch.PriorityGenerator
import akka.dispatch.UnboundedPriorityMailbox
import com.typesafe.config.Config
val generator = PriorityGenerator { // Create a new PriorityGenerator, lower prio means more important
case 'highpriority ⇒ 0 // 'highpriority messages should be treated first if possible
case 'lowpriority ⇒ 100 // 'lowpriority messages should be treated last if possible
case PoisonPill ⇒ 1000 // PoisonPill when no other left
case otherwise ⇒ 50 // We default to 50
}
// We create a new Priority dispatcher and seed it with the priority generator
class PrioMailbox(config: Config) extends UnboundedPriorityMailbox(generator)
Leave a comment
on 2012-02-20 18:19 *
By viktorklang
Roland, since you've changed the message-queue stuff, would you mind updating the docs?
on 2012-02-21 20:44 *
By rk@rkuhn.info
(In revision:c84daf83e801c25888906830243614625f989cfb) clean up mailbox types configurability, see #1843
- add (config) constructors to std mailbox types
- update docs for prio mailbox to directly implement MailboxType
Branch: wip-1843-MailboxTypes-∂π
- add (config) constructors to std mailbox types
- update docs for prio mailbox to directly implement MailboxType
Branch: wip-1843-MailboxTypes-∂π
on 2012-02-21 20:47 *
By rk@rkuhn.info
(In revision:c84daf83e801c25888906830243614625f989cfb) clean up mailbox types configurability, see #1843
- add (config) constructors to std mailbox types
- update docs for prio mailbox to directly implement MailboxType
Branch: master
- add (config) constructors to std mailbox types
- update docs for prio mailbox to directly implement MailboxType
Branch: master
on 2012-02-21 20:47 *
By viktorklang
(In revision:db5bf9dd752db75e25e44e6fc68c0edf230f1fcc) Merge pull request #346 from jboner/wip-1843-MailboxTypes-∂π
clean up mailbox types configurability, see #1843
Branch: master
clean up mailbox types configurability, see #1843
Branch: master
on 2012-02-21 20:47 *
By rk@rkuhn.info
(In revision:c84daf83e801c25888906830243614625f989cfb) clean up mailbox types configurability, see #1843
- add (config) constructors to std mailbox types
- update docs for prio mailbox to directly implement MailboxType
Branch: release-2.0
- add (config) constructors to std mailbox types
- update docs for prio mailbox to directly implement MailboxType
Branch: release-2.0
on 2012-02-21 20:47 *
By viktorklang
(In revision:db5bf9dd752db75e25e44e6fc68c0edf230f1fcc) Merge pull request #346 from jboner/wip-1843-MailboxTypes-∂π
clean up mailbox types configurability, see #1843
Branch: release-2.0
clean up mailbox types configurability, see #1843
Branch: release-2.0
on 2012-02-24 21:31 *
By rk@rkuhn.info
(In revision:c84daf83e801c25888906830243614625f989cfb) clean up mailbox types configurability, see #1843
- add (config) constructors to std mailbox types
- update docs for prio mailbox to directly implement MailboxType
Branch: wip-stash
- add (config) constructors to std mailbox types
- update docs for prio mailbox to directly implement MailboxType
Branch: wip-stash
on 2012-02-24 21:31 *
By viktorklang
(In revision:db5bf9dd752db75e25e44e6fc68c0edf230f1fcc) Merge pull request #346 from jboner/wip-1843-MailboxTypes-∂π
clean up mailbox types configurability, see #1843
Branch: wip-stash
clean up mailbox types configurability, see #1843
Branch: wip-stash