|
|
|
@ -54,7 +54,9 @@ public enum ForgeManager implements Runnable {
@@ -54,7 +54,9 @@ public enum ForgeManager implements Runnable {
|
|
|
|
|
|
|
|
|
|
// ForgeManager.forge is a delayQueue (priority queue using an epoc sort)
|
|
|
|
|
// workOrders are popped and processed when the completion time has passed.
|
|
|
|
|
// workOrders can be enqueued from any thread.
|
|
|
|
|
//
|
|
|
|
|
// workOrders can be enqueued from any thread such as from a db handler
|
|
|
|
|
// however the interface is .submit(workOrder).
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
|
workOrder = forge.take(); |
|
|
|
|