org.egothor.distributor
Interface Task<T>

All Known Subinterfaces:
Request<T>

public interface Task<T>

This interface represents a task that can be performed on an object of action(T) routine. In the example below the task performed by all workers is to append "a":

   Task a = new Task() {
           public void action( Object one ) { ((StringBuffer)one).append("a"); }
      };
 

Author:
Leo Galambos

Method Summary
 void action(T one)
          The job to do.
 

Method Detail

action

void action(T one)
The job to do.

Parameters:
one - the object that will do the job