ProcessorFactory

Companion
object
class Object
trait Matchable
class Any

Type members

Types

type Config

Type of the configuration used to instantiate the processor. Use Unit if you don't need configuration.

Type of the configuration used to instantiate the processor. Use Unit if you don't need configuration.

type Observer = Listener[Update[Product, Repr]]
type Product

Type of the successful process result.

Type of the successful process result.

type Repr

The actual processor type

The actual processor type

Value members

Concrete methods

final def apply(config: Config): Repr & Prepared
final def run(config: Config)(observer: Observer)(exec: ExecutionContext): Repr

Creates and starts the processor.

Creates and starts the processor.

Value Params
config

the configuration to use for the processor

exec

execution context to schedule threads

observer

a partial function observing the progress and completion of the process

Returns

the processor representation