com.sas.iom.orb
Class ThreadPoolEvent

com.sas.iom.orb.ThreadPoolEvent

public class ThreadPoolEvent

An event sent to ThreadPool event listeners to inform them of a change in ThreadPool status.

See Also:
ThreadPool, ThreadPoolEventListenerInterface

Nested Class Summary
static class ThreadPoolEvent.Type
          ThreadPoolEvent type enumeration.
 
Constructor Summary
ThreadPoolEvent(com.sas.iom.orb.ThreadPool threadPool, ThreadPoolEvent.Type type)
          Construct a ThreadPoolEvent of a certain type.
 
Method Summary
 com.sas.iom.orb.ThreadPool getThreadPool()
          Get the ThreadPool that fired the event.
 ThreadPoolEvent.Type getType()
          Get the ThreadPoolEvent type.
 java.lang.String toString()
           
 

Constructor Detail

ThreadPoolEvent

public ThreadPoolEvent(com.sas.iom.orb.ThreadPool threadPool,
                       ThreadPoolEvent.Type type)
Construct a ThreadPoolEvent of a certain type.

Parameters:
type - the event type
Method Detail

getThreadPool

public com.sas.iom.orb.ThreadPool getThreadPool()
Get the ThreadPool that fired the event.

Returns:
the ThreadPool that fired the event

getType

public ThreadPoolEvent.Type getType()
Get the ThreadPoolEvent type.

Returns:
the ThreadPoolEvent type

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object



Copyright © 2009 SAS Institute Inc. All Rights Reserved.