FutureTalker V1.3
by Matthew Ford
2005/04/11
A C D F G I L R S T

A

addListener(IFutureListener<V>) - Method in class au.com.forward.futureTalker.FutureTalker
Adds a listener to this task.
au.com.forward.futureTalker - package au.com.forward.futureTalker
Add listeners to Callable (see www.forward.com.au for an article on how to use this package.)

C

closeIgnoringErrors(Closeable) - Static method in class au.com.forward.futureTalker.TaskUtilities
Close this Closable, if it is not null, ignoring any errors.

D

done() - Method in class au.com.forward.futureTalker.FutureTalker
fire the listeners when task terminates or is cancelled

F

fireListeners() - Method in class au.com.forward.futureTalker.FutureTalker
Fires currently registered listeners and removes them.
futureCancelled(CancellationException, FutureTalker<T>) - Method in interface au.com.forward.futureTalker.IFutureListener
Called if cancelled.
futureError(Throwable, FutureTalker<T>) - Method in interface au.com.forward.futureTalker.IFutureListener
Called when the task's Callable.call() exits with an error.
futureResult(T, FutureTalker<T>) - Method in interface au.com.forward.futureTalker.IFutureListener
Called on normal completion A call to this method implies the task's call() method has returned without throwing an error.
FutureTalker<V> - Class in au.com.forward.futureTalker
This class allows you to add listeners to your FutureTask.
FutureTalker(Callable<V>) - Constructor for class au.com.forward.futureTalker.FutureTalker
Creates a FutureTalker that will upon running, execute the given Callable.

G

getCallable() - Method in class au.com.forward.futureTalker.FutureTalker
Returns the Callable that this task executes

I

ifInterruptedStop() - Static method in class au.com.forward.futureTalker.FutureTalker
Checks in the interrupt flag is set for the thread running this task and throws an InterruptedException if it is.
ifInterruptedStop() - Static method in class au.com.forward.futureTalker.TaskUtilities
Checks if the interrupt flag is set for the thread running this task and throws an InterruptedException if it is.
IFutureListener<T> - Interface in au.com.forward.futureTalker
Listener interface for FutureTalker
interruptibleInputStream(RandomAccessFile) - Static method in class au.com.forward.futureTalker.TaskUtilities
Returns an interruptible InputStream connected to a RandomAccessFile.
interruptibleInputStream(FileInputStream) - Static method in class au.com.forward.futureTalker.TaskUtilities
Returns an interruptible InputStream connected to a FileInputStream.
interruptibleOutputStream(RandomAccessFile) - Static method in class au.com.forward.futureTalker.TaskUtilities
Returns an interruptible OutputStream connected to a RandomAccessFile.
interruptibleOutputStream(FileOutputStream) - Static method in class au.com.forward.futureTalker.TaskUtilities
Returns an interruptible OutputStream connected to a FileOutputStream.
interruptibleReader(RandomAccessFile) - Static method in class au.com.forward.futureTalker.TaskUtilities
Returns an interruptible Reader connected to a RandomAccessFile using the default character set.
interruptibleReader(RandomAccessFile, String) - Static method in class au.com.forward.futureTalker.TaskUtilities
Returns an interruptible Reader connected to a RandomAccessFile using the given character set.
interruptibleReader(FileInputStream) - Static method in class au.com.forward.futureTalker.TaskUtilities
Returns an interruptible Reader connected to a FileInputStream using the default character set.
interruptibleReader(FileInputStream, String) - Static method in class au.com.forward.futureTalker.TaskUtilities
Returns an interruptible Reader connected to a FileInputStream using the given character set.
interruptibleSystemIn() - Static method in class au.com.forward.futureTalker.TaskUtilities
Returns an interruptible InputStream connected to System.in
interruptibleWriter(RandomAccessFile) - Static method in class au.com.forward.futureTalker.TaskUtilities
Returns an interruptible Writer connected to a RandomAccessFile using the default character set.
interruptibleWriter(RandomAccessFile, String) - Static method in class au.com.forward.futureTalker.TaskUtilities
Returns an interruptible Writer connected to a RandomAccessFile using the given character set.
interruptibleWriter(FileOutputStream) - Static method in class au.com.forward.futureTalker.TaskUtilities
Returns an interruptible Writer connected to a FileOutputStream using the default character set.
interruptibleWriter(FileOutputStream, String) - Static method in class au.com.forward.futureTalker.TaskUtilities
Returns an interruptible Writer connected to a FileOutputStream using the given character set.

L

listenerList - Variable in class au.com.forward.futureTalker.FutureTalker
The list of listeners for this task

R

rejected(RejectedExecutionException) - Method in class au.com.forward.futureTalker.FutureTalker
Causes this future to report an ExecutionException with the given throwable as its cause, unless this Future has already been set or has been cancelled.
removeListener(IFutureListener<V>) - Method in class au.com.forward.futureTalker.FutureTalker
Remove a listener from this task, if it is found.

S

shutdownNow(ThreadPoolExecutor) - Static method in class au.com.forward.futureTalker.FutureTalker
Shut down a ThreadPoolExecutor and reject or cancel unstarted pending tasks.

T

TaskUtilities - Class in au.com.forward.futureTalker
A collection of utilites for coding tasks so that they can be interrupted.
TaskUtilities() - Constructor for class au.com.forward.futureTalker.TaskUtilities
 

A C D F G I L R S T
©2004, Forward Computing and Control Pty. Ltd
ACN 003 669 994   NSW Australia
All Rights Reserved.