--- jsampler/trunk/src/org/jsampler/task/UpdateTotalVoiceCount.java 2008/12/24 16:55:54 1817 +++ jsampler/trunk/src/org/jsampler/task/UpdateTotalVoiceCount.java 2008/12/24 17:29:47 1818 @@ -45,6 +45,7 @@ } /** The entry point of the task. */ + @Override public void run() { try { @@ -56,5 +57,20 @@ String msg = getDescription() + ": " + HF.getErrorMessage(x); CC.getLogger().log(Level.INFO, msg, x); } + + } + + /** + * Used to decrease the traffic. All task in the queue + * equal to this are removed if added using {@link org.jsampler.CC#scheduleTask}. + * @see org.jsampler.CC#addTask + */ + @Override + public boolean + equals(Object obj) { + if(obj == null) return false; + if(!(obj instanceof UpdateTotalVoiceCount)) return false; + + return true; } }