ProcessorBase
An implementation of Processor along with Processor.Prepared that handles
everything except the main processing loop. This must be specified as the only
abstract method body.
An implementation of Processor along with Processor.Prepared that handles
everything except the main processing loop. This must be specified as the only
abstract method body.
- Type Params
- Prod
the result of the process
- Repr
the self type of the processor
Value members
Abstract methods
Concrete methods
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.
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 be informed immediately. about an abort request.
Otherwise they can pull the aborted status any time by invoking checkAborted().
Subclasses may override this to be informed immediately. about an abort request.
Otherwise they can pull the aborted status any time by invoking checkAborted().
Inherited methods
Synchronously dispatches an update to all currently registered listeners. Non fatal exceptions are caught on a per-listener basis without stopping the dispatch.
Synchronously dispatches an update to all currently registered listeners. Non fatal exceptions are caught on a per-listener basis without stopping the dispatch.
- Inherited from
- ModelImpl
- Inherited from
- Future
Removes all listeners. This is useful when disposing the model, to remove any unnecessary references.
Removes all listeners. This is useful when disposing the model, to remove any unnecessary references.
- Inherited from
- ModelImpl
Subclasses can override this to issue particular actions when the first listener has been registered
Subclasses can override this to issue particular actions when the first listener has been registered
- Inherited from
- ModelImpl
Subclasses can override this to issue particular actions when the last listener has been unregistered
Subclasses can override this to issue particular actions when the last listener has been unregistered
- Inherited from
- ModelImpl
Concrete fields
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).
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).
Implicits
Implicits
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.
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.