ERXFutureTask< V > Class Reference

Inherits java::util::concurrent::FutureTask<V>, er::extensions::concurrency::ERXExecutionStateTransition, er::extensions::foundation::ERXStatusInterface, er::extensions::concurrency::ERXTaskPercentComplete, and com::webobjects::foundation::NSKeyValueCoding.

Collaboration diagram for ERXFutureTask< V >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

void afterExecute ()
void beforeExecute ()
 ERXFutureTask (Runnable runnable, V result)
 ERXFutureTask (Callable< V > callable)
boolean hasPercentComplete ()
boolean hasStatus ()
Double percentComplete ()
String status ()
void takeValueForKey (Object value, String key)
Object task ()
String toString ()
Object valueForKey (String key)

Public Attributes

Boolean _hasStatus

Private Attributes

Boolean _hasPercentComplete
final Object _task


Detailed Description

A FutureTask that implements linkERXStatusInterfaceand@link@linkERXTaskPercentCompleteand@link@linkNSKeyValueCoding.AdditionalmethodsareprovidedinthisFutureTaskforcheckingifthoseinterfacesareimplementedinthewrappedtaskandifsothevaluesarepassedthrufromthetask.Usage:<code>Ifnull,thensubmitthecallabletaskERXFutureTask_future=newERXFutureTask(callable);ERXExecutorService.executorService().execute(_future);</code>@authorkieran

Constructor & Destructor Documentation

ERXFutureTask ( Callable< V >  callable  ) 

ERXFutureTask ( Runnable  runnable,
result 
)


Member Function Documentation

void afterExecute (  ) 

Returns:
Callable has task description feature

Implements ERXExecutionStateTransition.

void beforeExecute (  ) 

boolean hasPercentComplete (  ) 

Returns:
whether the wrapped task has linkERXTaskPercentCompleteinterface

boolean hasStatus (  ) 

Returns:
whether the wrapped task has linkERXStatusInterfaceinterface

Double percentComplete (  ) 

Returns:
a Double between 0 and 1.0 indicating how far a task has progressed toward completion. A null return value indicates that percent complete is unknown

Implements ERXTaskPercentComplete.

String status (  ) 

Returns:
the status of a task. Useful for a long running task to implement an optional status message.

Implements ERXStatusInterface.

void takeValueForKey ( Object  value,
String  key 
)

Object task (  ) 

String toString (  ) 

Object valueForKey ( String  key  ) 


Member Data Documentation

Boolean _hasPercentComplete [private]

Boolean _hasStatus

final Object _task [private]


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

Generated on Sat May 26 06:43:07 2012 for Project Wonder by  doxygen 1.5.8