Asynchronously aborts the process.
Asynchronously aborts the process. This method returns immediately. Once the process is aborted,
it will dispatch an Aborted
event. This method may be called repeatedly, although calling
it twice does not have any particular effect.
Returns true
if the abort
method had been called.
Returns true
if the abort
method had been called.
Checks if the process was aborted.
Checks if the process was aborted. If so, throws an Aborted
exception. The main body
should _not_ try to catch this exception, which will be handled by the underlying infrastructure.
However, the main body should put resource operations in proper try ... finally
blocks, so
that these resources are freed when Abort
exception is thrown. Alternatively, the cleanUp
method can be overridden to perform such tasks.
Subclasses may override this to perform further cleanup when the process is aborted.
Subclasses may override this to perform further cleanup when the process is aborted.
Keeps a record of the execution context used for starting this processor.
Keeps a record of the execution context used for starting this processor.
You may use this to start intermediate sub processes. This method may only
be used in the body
method.
Subclasses may override this to be informed immediately.
Subclasses may override this to be informed immediately. about an abort request.
Otherwise they can pull the aborted status any time by invoking checkAborted()
.
Queries the correct progress which is value between 0.
Queries the correct progress which is value between 0.0 and 1.0
The resolution at which progress reports are dispatched.
The resolution at which progress reports are dispatched. The default of 100
means that
a Processor.Progress
message is only dispatched if the progress has advanced by at least 1 percent.
Higher values give finer granularity (sub classes may override this value).
Invoke this to signalize progress
Invoke this to signalize progress
the processor's progress in percent (0 to 1). Values outside the 0 to 1 range will be clipped.
An implementation of
Processor
along withProcessor.Prepared
that handles everything except the main processing loop. This must be specified as the only abstract methodbody
.the result of the process
the self type of the processor