
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 |
| alma::acs::container::CleaningDaemonThreadFactory::LoggingThreadGroup::LoggingThreadGroup | ( | String | name, | |
| Logger | logger, | |||
| String | ownerName | |||
| ) | [inline, package] |
| void alma::acs::container::CleaningDaemonThreadFactory::LoggingThreadGroup::setShuttingDown | ( | ) | [inline, package] |
References shuttingDown.
Referenced by alma::acs::container::CleaningDaemonThreadFactory::cleanUp().
| 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.
References logger, ownerName, and shuttingDown.
final Logger alma::acs::container::CleaningDaemonThreadFactory::LoggingThreadGroup::logger [private] |
Referenced by uncaughtException().
final String alma::acs::container::CleaningDaemonThreadFactory::LoggingThreadGroup::ownerName [private] |
Referenced by uncaughtException().
volatile boolean alma::acs::container::CleaningDaemonThreadFactory::LoggingThreadGroup::shuttingDown = false [private] |
Referenced by setShuttingDown(), and uncaughtException().
1.6.2