| com.jcorporate.expresso.services.asyncprocess.AsyncProcessor
All known Subclasses: com.jcorporate.expresso.services.asyncprocess.DefaultAsyncProcessor,
AsyncProcessor | public interface AsyncProcessor (Code) | | 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.
author: Michael Rimov version: $Revision: 1.5 $ on $Date: 2004/11/17 20:48:17 $ |
Field Summary | |
public 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. |
SESSION_KEY | public String SESSION_KEY(Code) | | 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.
|
addToQueue | public AsyncTicket addToQueue(AsyncProcess newProcess, long waitTimeout) throws QueueFullException(Code) | | Add an asynchronous process ot the queue
Parameters: newProcess - the process to add to the queue Parameters: waitTimeout - the time in milliseconds to wait beforereturning. Will return 'completeed' if that occurs beforethe timeout is reached. AsyncTicket object for use in reeming the process' status. throws: QueueFullException - if there are too many jobs waiting. |
destroy | public void destroy()(Code) | | Called when the process is destroyed.
|
getProcessResult | public AsyncProcessResult getProcessResult(AsyncTicket ticketId)(Code) | | Retrieve the result of the process
Parameters: ticketId - the ticket id of the process java.lang.Object |
getProcessResult | public AsyncProcessResult getProcessResult(AsyncTicket ticketId, long waitTimeout)(Code) | | Retrieve the result of the process waiting up to a specified time for
the process to complete
Parameters: ticketId - the ticket ID Parameters: waitTimeout - the time in ms to wait for the process to completebefore returning. AsyncProcessResult |
|
|