Refining the PriorityGenerator API and also adding PriorityDispatcher to the docs
This commit is contained in:
parent
e49d675aed
commit
a38e0cacdb
4 changed files with 124 additions and 8 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue