|
Expresso 5-5-0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
The AsyncProcessor is the entity that actually does the processing of the AsyncProcess objects. As with all interfaces, the actual implementations may be different from one another. DefaultAsyncProcessor is the one that is provided with Expresso.
| Field Summary | |
static String |
SESSION_KEY
If you only do one process at a time, you can use this as the key to store your ticket in the user's session. |
| Method Summary | |
AsyncTicket |
addToQueue(AsyncProcess newProcess)
Adds a process to the queue to get complete |
AsyncTicket |
addToQueue(AsyncProcess newProcess,
long waitTimeout)
Add an asynchronous process ot the queue |
void |
destroy()
Called when the process is destroyed. |
AsyncProcessResult |
getProcessResult(AsyncTicket ticketId)
Retrieve the result of the process |
AsyncProcessResult |
getProcessResult(AsyncTicket ticketId,
long waitTimeout)
Retrieve the result of the process waiting up to a specified time for the process to complete |
| Field Detail |
public static final String SESSION_KEY
| Method Detail |
public AsyncProcessResult getProcessResult(AsyncTicket ticketId)
ticketId - the ticket id of the process
public AsyncProcessResult getProcessResult(AsyncTicket ticketId,
long waitTimeout)
ticketId - the ticket IDwaitTimeout - the time in ms to wait for the process to complete
before returning.
public AsyncTicket addToQueue(AsyncProcess newProcess)
throws QueueFullException
newProcess - the process to complete
QueueFullException
public AsyncTicket addToQueue(AsyncProcess newProcess,
long waitTimeout)
throws QueueFullException
newProcess - the process to add to the queue
QueueFullException - if there are too many jobs waiting.public void destroy()
|
Expresso 5-5-0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||