Changed API for EventHandler and added support for log levels
This commit is contained in:
parent
39caa297ac
commit
f8ce3d541e
16 changed files with 69 additions and 35 deletions
|
|
@ -208,10 +208,10 @@ class BoundedExecutorDecorator(val executor: ExecutorService, bound: Int) extend
|
|||
})
|
||||
} catch {
|
||||
case e: RejectedExecutionException =>
|
||||
EventHandler notifyListeners EventHandler.Warning(this, e.toString)
|
||||
EventHandler notify EventHandler.Warning(this, e.toString)
|
||||
semaphore.release
|
||||
case e: Throwable =>
|
||||
EventHandler notifyListeners EventHandler.Error(e, this)
|
||||
EventHandler notify EventHandler.Error(e, this)
|
||||
throw e
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue