com.threed.jpct.threading
Interface WorkLoad


public interface WorkLoad

A WorkLoad is what the Worker will process in its queues.


Method Summary
 void done()
          This method is being called when the Worker is done with the WorkLoad.
 void doWork()
          In this method, the actual work should be done (hence the name...)
 void error(java.lang.Exception e)
          If doWork() throws an exception, this method will be called.
 

Method Detail

doWork

public void doWork()
In this method, the actual work should be done (hence the name...)


error

public void error(java.lang.Exception e)
If doWork() throws an exception, this method will be called.

Parameters:
e - the exception

done

public void done()
This method is being called when the Worker is done with the WorkLoad.