I have a Java class that extends Thread, it basically looks like the following:
public class HttpRequestDispatcher extends Thread {
private
There are several solutions to this problem:
Use an data structure external to the Thread. Pass the object in your constructor and update it, when your Thread is about to finish.
Use a callback method. When your Thread finishes, call the callback.
Make use of a java.util.concurrent.Future (Java >= 1.5):
A Future represents the result of an asynchronous computation. Methods are provided to check if the computation is complete, to wait for its completion, and to retrieve the result of the computation.