Project Wonder 5.0

er.extensions.concurrency
Interface ERXLongResponseTask

All Superinterfaces:
java.lang.Runnable
All Known Implementing Classes:
ERXLongResponseTask.DefaultImplementation

public interface ERXLongResponseTask
extends java.lang.Runnable

Long response task interface and default implementation should take away the need to tie your long running task directly to a component like with WOLongReponsePage. To use it, you should subclass the default implementation, implement performAction(), drop an instance of ERXLongResponse on your page and bind it's task binding to it.

Author:
ak

Nested Class Summary
static class ERXLongResponseTask.DefaultImplementation
           
static class ERXLongResponseTask.WorkerThread
          Special worker thread that holds the reference to the task so we can get a list of them.
 
Method Summary
 boolean isDone()
           
 com.webobjects.appserver.WOComponent nextPage()
           
 void setLongResponse(ERXLongResponse sender)
          Sets the ERXLongResponse that pulls info from this task
 void start()
          Start the task.
 void stop()
          Stop the task.
 
Methods inherited from interface java.lang.Runnable
run
 

Method Detail

setLongResponse

void setLongResponse(ERXLongResponse sender)
Sets the ERXLongResponse that pulls info from this task


isDone

boolean isDone()
Returns:
true if the task is still running

start

void start()
Start the task.


stop

void stop()
Stop the task.


nextPage

com.webobjects.appserver.WOComponent nextPage()
Returns:
next page according to inner status.

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.