:: com :: sun :: star :: task ::

interface XAsyncJob
Base Hierarchy
::com::sun::star::uno::XInterface
 |
 +-XAsyncJob
Description
specifies a job which is to be executed asynchronously

Instead of XJob the implementation of this interface must make shure that execution will be real asynchronous (e.g. by using threads). Because it's not part of the generic JobExecutor , the asynchronous mode must be guaranteed by the implementation of THIS interface.

See also
XJob

Methods' Summary
executeAsync executes the job asynchronously
Methods' Details
executeAsync
void
executeAsync(
 
[in] sequence< ::com::sun::star::beans::NamedValue >
[in] XJobListener 

raises(

 
Arguments,
Listener ) 
::com::sun::star::lang::IllegalArgumentException );

Description
executes the job asynchronously
Parameter Arguments
are arguments for executing the job. Their semantics is completely implementation dependent. Usually, a concrete implementation of a job specifies in its service descriptions which parameters are allowed (or expected). This values are persistent by the configuration of the JobExecutor which use this asynchronous job. It's possible to write it back by called listener function XJobListener::jobFinished() which must be the executor himself.
Parameter Listener
specifies a listener which should be notified on events. May be NULL . If it's not NULL it must be the JobExecutor which force this action.
Throws
com::sun::star::lang::IllegalArgumentException if some of given arguments doesn't fill out the service specification or was corrupt so the service couldn't work correctly
Top of Page