mirror of
https://github.com/rasilon/ujetl.git
synced 2026-04-11 10:29:29 +00:00
Give the threads useful names.
This commit is contained in:
parent
6ba081b625
commit
e8d49669b1
1 changed files with 3 additions and 0 deletions
|
|
@ -50,6 +50,7 @@ public class Job extends Thread {
|
|||
|
||||
resultBuffer = new ArrayBlockingQueue<List<String>>( 3 * blockSize);
|
||||
producerLive = new AtomicBoolean(true);
|
||||
this.setName(String.format("%s-%s-Manager",jobName,name));
|
||||
}
|
||||
|
||||
int arraySum(int[] arr) {
|
||||
|
|
@ -69,6 +70,7 @@ public class Job extends Thread {
|
|||
public Producer(ResultSet src,BlockingQueue q) {
|
||||
this.src = src;
|
||||
this.q = q;
|
||||
this.setName(String.format("%s-%s-Consumer",jobName,name));
|
||||
}
|
||||
public void run() {
|
||||
try {
|
||||
|
|
@ -114,6 +116,7 @@ public class Job extends Thread {
|
|||
public Consumer(PreparedStatement insertStatement,BlockingQueue q) {
|
||||
this.insertStatement = insertStatement;
|
||||
this.q = q;
|
||||
this.setName(String.format("%s-%s-Consumer",jobName,name));
|
||||
}
|
||||
public void run() {
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue