Refining the PriorityGenerator API and also adding PriorityDispatcher to the docs

This commit is contained in:
Viktor Klang 2011-04-12 15:40:09 +02:00
parent e49d675aed
commit a38e0cacdb
4 changed files with 124 additions and 8 deletions

View file

@ -236,14 +236,6 @@ object PriorityGenerator {
def apply(priorityFunction: Any => Int): PriorityGenerator = new PriorityGenerator {
def gen(message: Any): Int = priorityFunction(message)
}
/**
* Java API
* Creates a PriorityGenerator that uses the supplied function as priority generator
*/
def apply(priorityFunction: akka.japi.Function[Any, Int]): PriorityGenerator = new PriorityGenerator {
def gen(message: Any): Int = priorityFunction(message)
}
}
/**