ProgramixGenericLib v5.0.1

Package com.programix.thread

Java multithreading related utilities.

See:
          Description

Interface Summary
ExceptionHandler Sometimes self-running objects accept an ExceptionHandler as a means to have the self-running object's internal thread report unexpected trouble.
LineLogger.Output Used as a destination for lines sent to LineLogger.
ThreadSafe Marker interface used to indicate that a class has been designed to be safely access by multiple threads at the same time.
 

Class Summary
BooleanState This class serves as a thread-safe tracker of a boolean state.
ConsoleExceptionHandler An implementation of ExceptionHandler that prints a stack trace to System.err.
Counter This class serves as a thread-safe integer counter.
InitializationMonitor This class serves as a thread-safe way to monitor the initialization of a component in a system.
LineLogger Logs messages a line at a time prefixing each line with the elapsed time since the first message was sent and the name of the thread that sent the message.
LineLogger.ConsoleOutput An implementation of LineLogger.Output that just sends the output to the console (System.out).
LineLogger.TextAreaOutput An implementation of LineLogger.Output that appends output to a JTextArea.
ThreadTools Handy and commonly used tools for working with multithreaded code.
Waiter Utility to assist in waiting for certain conditions to be met with and without timeouts.
Waiter.Expression Used to provide Waiter.Condition with a boolean expression to evaluate by subclassing and implementing the Waiter.Expression.isTrue() method.
 

Exception Summary
InitializationMonitor.FailedException Thrown by some methods on InitializationMonitor to indicate that the initialization failed.
InterruptException This is a RuntimeException that is used in place of the more traditional InterruptedException to avoid the forced use of a try-catch.
ShutdownException Thrown to indicate that the object that a method was invoked against has been shutdown.
TimedOutException Thrown by some methods to indicate that a timeout occurred.
 

Package com.programix.thread Description

Java multithreading related utilities.


ProgramixGenericLib v5.0.1

Copyright © 2001-2009 Programix Incorporated. All rights reserved. ProgramixGenericLib is free and is OSI Certified Open Source Software under the BSD license.