Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

alma::acs::container::CleaningDaemonThreadFactory::LoggingThreadGroup Class Reference

List of all members.

Public Member Functions

void uncaughtException (Thread t, Throwable e)

Package Functions

 LoggingThreadGroup (String name, Logger logger)
void setShuttingDown ()

Private Attributes

final Logger logger
volatile boolean shuttingDown = false

Constructor & Destructor Documentation

alma::acs::container::CleaningDaemonThreadFactory::LoggingThreadGroup::LoggingThreadGroup String  name,
Logger  logger
[inline, package]
 


Member Function Documentation

void alma::acs::container::CleaningDaemonThreadFactory::LoggingThreadGroup::setShuttingDown  )  [inline, package]
 

void alma::acs::container::CleaningDaemonThreadFactory::LoggingThreadGroup::uncaughtException Thread  t,
Throwable  e
[inline]
 

Called by the JVM if any of the threads in this thread group terminates with an error. Logs a warning to the logger provided in the ctor.

The error ThreadDeath is even logged during expected thread lifetime, because user threads are not supposed to be terminated through the deprecated stop() method during their normal operation.
During shutdown, exceptions are not logged, because the killing of surviving user threads is logged already in the cleanUp method.

: since JDK 1.5 an UncaughtExceptionHandler can be attached to each thread, which may be an alternative to using a thread group for this purpose.

See also:
java.lang.ThreadGroup#uncaughtException(java.lang.Thread, java.lang.Throwable)


Member Data Documentation

final Logger alma::acs::container::CleaningDaemonThreadFactory::LoggingThreadGroup::logger [private]
 

volatile boolean alma::acs::container::CleaningDaemonThreadFactory::LoggingThreadGroup::shuttingDown = false [private]
 


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 02:52:26 2009 for ACS Java API by doxygen 1.3.8