foundry-0.9.1

foundry.threads
Class ThreadPoolEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--foundry.threads.ThreadPoolEvent
All Implemented Interfaces:
Serializable

public class ThreadPoolEvent
extends EventObject

An event that contains information from a ThreadPool. ThreadPoolEvents can be received by implementing a ThreadPoolListener. Substantial portions of this class include software developed by GO.com (http://opensource.go.com/); those portions are governed by the Tea Software License, Version 1.0.

Version:
$Revision: 1.2 $
Author:
Laird Nelson, Brian S O'Neill
See Also:
ThreadPoolListener, Serialized Form

Field Summary
private  Thread thread
          The Thread that caused this ThreadPoolEvent to be fired.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ThreadPoolEvent(ThreadPool source, Thread thread)
          Creates a ThreadPoolEvent.
 
Method Summary
 Thread getThread()
          Returns the Thread that caused this event to be fired.
 ThreadPool getThreadPool()
          Returns the ThreadPool that fired this event.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

thread

private final Thread thread
The Thread that caused this ThreadPoolEvent to be fired.
Constructor Detail

ThreadPoolEvent

public ThreadPoolEvent(ThreadPool source,
                       Thread thread)
Creates a ThreadPoolEvent.
Parameters:
source - the ThreadPool that fired this event
thread - the Thread that caused this event to be fired
Method Detail

getThreadPool

public ThreadPool getThreadPool()
Returns the ThreadPool that fired this event.
Returns:
the ThreadPool that fired this event

getThread

public Thread getThread()
Returns the Thread that caused this event to be fired.
Returns:
the Thread that caused this event to be fired

foundry-0.9.1

Copyright © 2000 - Laird Jarrett Nelson