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

Collaboration diagram for alma::acs::container::CleaningDaemonThreadFactory::LoggingThreadGroup:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void uncaughtException (Thread t, Throwable e)

Package Functions

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

Private Attributes

final Logger logger
volatile boolean shuttingDown = false
final String ownerName

Constructor & Destructor Documentation

alma::acs::container::CleaningDaemonThreadFactory::LoggingThreadGroup::LoggingThreadGroup ( String  name,
Logger  logger,
String  ownerName 
) [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)

References logger, ownerName, and shuttingDown.


Member Data Documentation

Referenced by uncaughtException().

Referenced by uncaughtException().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2