org.xmlBlaster.util.def
Class PriorityEnum

This class simulates an enumeration for queue priorities,
it ensures that only valid priorities are used.

Note that this implementation has a fixed number of priorities, namely from 0 (lowest) to 9 (highest).
For performance reasons we have not used an interface in the queue implementation to hide
this priority implementation (calling a method through an interface takes 20 CPU cycles instead of 2).

If you need a different set of priorities, replace this implementation or change it to
support an adjustable amount of priorities.