45 |
} |
} |
46 |
|
|
47 |
/** The entry point of the task. */ |
/** The entry point of the task. */ |
48 |
|
@Override |
49 |
public void |
public void |
50 |
run() { |
run() { |
51 |
try { |
try { |
57 |
String msg = getDescription() + ": " + HF.getErrorMessage(x); |
String msg = getDescription() + ": " + HF.getErrorMessage(x); |
58 |
CC.getLogger().log(Level.INFO, msg, x); |
CC.getLogger().log(Level.INFO, msg, x); |
59 |
} |
} |
60 |
|
|
61 |
|
} |
62 |
|
|
63 |
|
/** |
64 |
|
* Used to decrease the traffic. All task in the queue |
65 |
|
* equal to this are removed if added using {@link org.jsampler.CC#scheduleTask}. |
66 |
|
* @see org.jsampler.CC#addTask |
67 |
|
*/ |
68 |
|
@Override |
69 |
|
public boolean |
70 |
|
equals(Object obj) { |
71 |
|
if(obj == null) return false; |
72 |
|
if(!(obj instanceof UpdateTotalVoiceCount)) return false; |
73 |
|
|
74 |
|
return true; |
75 |
} |
} |
76 |
} |
} |