rabbit.nio
Class StatisticsCollector
java.lang.Object
rabbit.nio.StatisticsCollector
- All Implemented Interfaces:
- Runnable
public class StatisticsCollector
- extends Object
- implements Runnable
A class that executes one task and gathers information about
the time spent and the success status of the task.
- Author:
- Robert Olofsson
|
Method Summary |
void |
run()
Run the task. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StatisticsCollector
public StatisticsCollector(StatisticsHolder stats,
Runnable realTask,
TaskIdentifier ti)
- Create a new StatisticsCollector that will update the
given StatisticsHolder about the specific job.
- Parameters:
stats - the StatisticsHolder to updaterealTask - the task to runti - the identifier of the task
run
public void run()
- Run the task.
- Specified by:
run in interface Runnable