com.limegroup.gnutella.util
Interface ThreadWorkGroup.WorkerInterface

All Superinterfaces:
java.lang.Runnable
Enclosing interface:
ThreadWorkGroup

public static interface ThreadWorkGroup.WorkerInterface
extends java.lang.Runnable

The interface that you should provide a implementation for. Threads of Workers will perform tasks (via doTask).


Method Summary
 boolean checkInput(java.lang.Object[] input)
          Given an Object[], check that the objects are in the correct order and are of the correct type.
 void run()
          Actually performs a 'task'.
 

Method Detail

checkInput

public boolean checkInput(java.lang.Object[] input)
Given an Object[], check that the objects are in the correct order and are of the correct type. Please save the input for use during run.

Returns:
true if the input types are valid, false if not.

run

public void run()
Actually performs a 'task'. Will call checkInput() with the Object[] before calling this.

Specified by:
run in interface java.lang.Runnable