Skip to content
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.

Commit

Permalink
Better thread naming
Browse files Browse the repository at this point in the history
  • Loading branch information
Raghavendra Prabhu committed Mar 22, 2012
1 parent 5e81ac4 commit c61ad33
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ class BlockingDatabaseWrapper(
protected[async] val database: Database,
stats: StatsCollector = NullStatsCollector)
extends AsyncDatabase {
private val executor = Executors.newFixedThreadPool(workPoolSize, new DaemonThreadFactory("asyncWorkPool"))
private val executor =
Executors.newFixedThreadPool(workPoolSize, new DaemonThreadFactory("asyncWorkPool-" + database.hosts.mkString(",")))
private val workPool = FuturePool(executor)

def withConnection[R](f: Connection => R): Future[R] = {
Expand Down

0 comments on commit c61ad33

Please sign in to comment.