Added check to ensure that messages are not null. Also cleaned up misc code
This commit is contained in:
parent
f88a7cd207
commit
3d529e8ca4
11 changed files with 55 additions and 173 deletions
|
|
@ -160,12 +160,11 @@ class MonitorableThreadFactory(val name: String) extends ThreadFactory {
|
|||
*/
|
||||
object MonitorableThread {
|
||||
val DEFAULT_NAME = "MonitorableThread"
|
||||
val created = new AtomicInteger
|
||||
val alive = new AtomicInteger
|
||||
@volatile var debugLifecycle = false
|
||||
}
|
||||
|
||||
// FIXME fix the issues with using the monitoring in MonitorableThread
|
||||
// FIXME use MonitorableThread.created and MonitorableThread.alive in monitoring
|
||||
val created = new AtomicInteger
|
||||
val alive = new AtomicInteger
|
||||
}
|
||||
|
||||
/**
|
||||
* @author <a href="http://jonasboner.com">Jonas Bonér</a>
|
||||
|
|
@ -178,7 +177,6 @@ class MonitorableThread(runnable: Runnable, name: String)
|
|||
})
|
||||
|
||||
override def run = {
|
||||
val debug = MonitorableThread.debugLifecycle
|
||||
try {
|
||||
MonitorableThread.alive.incrementAndGet
|
||||
super.run
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue