Packages

t

de.sciss.processor.impl

ProcessorImpl

trait ProcessorImpl[Prod, Repr] extends ProcessorLike[Prod, Repr] with Prepared with Body with ModelImpl[Update[Prod, Repr]] with FutureProxy[Prod]

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.

Prod

the result of the process

Repr

the self type of the processor

Self Type
ProcessorImpl[Prod, Repr] with Repr
Linear Supertypes
FutureProxy[Prod], ModelImpl[Update[Prod, Repr]], Body, Prepared, ProcessorLike[Prod, Repr], Model[Update[Prod, Repr]], Future[Prod], Awaitable[Prod], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ProcessorImpl
  2. FutureProxy
  3. ModelImpl
  4. Body
  5. Prepared
  6. ProcessorLike
  7. Model
  8. Future
  9. Awaitable
  10. AnyRef
  11. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def body(): Prod

    The main processing body.

    The main processing body.

    Attributes
    protected

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def abort(): Unit

    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.

    Definition Classes
    ProcessorImplProcessorLike
  5. final def aborted: Boolean

    Returns true if the abort method had been called.

    Returns true if the abort method had been called.

    Definition Classes
    ProcessorImplBody
  6. def addListener(pf: Listener[Update[Prod, Repr]]): pf.type
    Definition Classes
    ModelImpl → Model
  7. def andThen[U](pf: PartialFunction[Try[Prod], U])(implicit executor: ExecutionContext): Future[Prod]
    Definition Classes
    Future
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. final def await[B](that: ProcessorLike[B, Any], offset: Double = 0.0, weight: Double = 1.0): B
    Attributes
    protected
  10. final def checkAborted(): Unit

    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.

    Definition Classes
    ProcessorImplBody
  11. def cleanUp(): Unit

    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.

    Attributes
    protected
  12. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  13. def collect[S](pf: PartialFunction[Prod, S])(implicit executor: ExecutionContext): Future[S]
    Definition Classes
    Future
  14. final def dispatch(update: Update[Prod, Repr]): Unit
    Attributes
    protected
    Definition Classes
    ModelImpl
  15. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  17. implicit final def executionContext: ExecutionContext

    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.

    Attributes
    protected
  18. def failed: Future[Throwable]
    Definition Classes
    Future
  19. def fallbackTo[U >: Prod](that: Future[U]): Future[U]
    Definition Classes
    Future
  20. def filter(p: (Prod) ⇒ Boolean)(implicit executor: ExecutionContext): Future[Prod]
    Definition Classes
    Future
  21. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  22. def flatMap[S](f: (Prod) ⇒ Future[S])(implicit executor: ExecutionContext): Future[S]
    Definition Classes
    Future
  23. def flatten[S](implicit ev: <:<[Prod, Future[S]]): Future[S]
    Definition Classes
    Future
  24. def foreach[U](f: (Prod) ⇒ U)(implicit executor: ExecutionContext): Unit
    Definition Classes
    Future
  25. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  26. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  27. def isCompleted: Boolean
    Definition Classes
    FutureProxy → Future
  28. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  29. def map[S](f: (Prod) ⇒ S)(implicit executor: ExecutionContext): Future[S]
    Definition Classes
    Future
  30. def mapTo[S](implicit tag: ClassTag[S]): Future[S]
    Definition Classes
    Future
  31. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  32. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  33. def notifyAborted(): Unit

    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().

    Attributes
    protected
  34. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  35. def onComplete[U](func: (Try[Prod]) ⇒ U)(implicit executor: ExecutionContext): Unit
    Definition Classes
    FutureProxy → Future
  36. final def peerFuture: Future[Prod]
    Attributes
    protected
    Definition Classes
    ProcessorImplFutureProxy
  37. final def progress: Double

    Queries the correct progress which is value between 0.0 and 1.0

    Queries the correct progress which is value between 0.0 and 1.0

    Definition Classes
    ProcessorImplBodyProcessorLike
  38. val progressResolution: Int

    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).

    Attributes
    protected
  39. final def progress_=(f: Double): Unit

    Invoke this to signalize progress

    Invoke this to signalize progress

    f

    the processor's progress in percent (0 to 1). Values outside the 0 to 1 range will be clipped.

    Definition Classes
    ProcessorImplBody
  40. def ready(atMost: Duration)(implicit permit: CanAwait): ProcessorImpl.this
    Definition Classes
    FutureProxy → Awaitable
  41. def recover[U >: Prod](pf: PartialFunction[Throwable, U])(implicit executor: ExecutionContext): Future[U]
    Definition Classes
    Future
  42. def recoverWith[U >: Prod](pf: PartialFunction[Throwable, Future[U]])(implicit executor: ExecutionContext): Future[U]
    Definition Classes
    Future
  43. def releaseListeners(): Unit
    Attributes
    protected
    Definition Classes
    ModelImpl
  44. def removeListener(pf: Listener[Update[Prod, Repr]]): Unit
    Definition Classes
    ModelImpl → Model
  45. def result(atMost: Duration)(implicit permit: CanAwait): Prod
    Definition Classes
    FutureProxy → Awaitable
  46. final def start()(implicit executionContext: ExecutionContext): Unit
    Definition Classes
    ProcessorImplPrepared
  47. def startListening(): Unit
    Attributes
    protected
    Definition Classes
    ModelImpl
  48. def stopListening(): Unit
    Attributes
    protected
    Definition Classes
    ModelImpl
  49. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  50. def toString(): String
    Definition Classes
    AnyRef → Any
  51. def transform[B](f: (Try[Prod]) ⇒ Try[B])(implicit executor: ExecutionContext): Future[B]
    Definition Classes
    FutureProxy → Future
  52. def transform[S](s: (Prod) ⇒ S, f: (Throwable) ⇒ Throwable)(implicit executor: ExecutionContext): Future[S]
    Definition Classes
    Future
  53. def transformWith[B](f: (Try[Prod]) ⇒ Future[B])(implicit executor: ExecutionContext): Future[B]
    Definition Classes
    FutureProxy → Future
  54. def value: Option[Try[Prod]]
    Definition Classes
    FutureProxy → Future
  55. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  56. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  57. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  58. final def withFilter(p: (Prod) ⇒ Boolean)(implicit executor: ExecutionContext): Future[Prod]
    Definition Classes
    Future
  59. def zip[U](that: Future[U]): Future[(Prod, U)]
    Definition Classes
    Future
  60. def zipWith[U, R](that: Future[U])(f: (Prod, U) ⇒ R)(implicit executor: ExecutionContext): Future[R]
    Definition Classes
    Future

Deprecated Value Members

  1. def onFailure[U](pf: PartialFunction[Throwable, U])(implicit executor: ExecutionContext): Unit
    Definition Classes
    Future
    Annotations
    @deprecated
    Deprecated

    (Since version 2.12.0) use onComplete or failed.foreach instead (keep in mind that they take total rather than partial functions)

  2. def onSuccess[U](pf: PartialFunction[Prod, U])(implicit executor: ExecutionContext): Unit
    Definition Classes
    Future
    Annotations
    @deprecated
    Deprecated

    (Since version 2.12.0) use foreach or onComplete instead (keep in mind that they take total rather than partial functions)

Inherited from FutureProxy[Prod]

Inherited from ModelImpl[Update[Prod, Repr]]

Inherited from Body

Inherited from Prepared

Inherited from ProcessorLike[Prod, Repr]

Inherited from Model[Update[Prod, Repr]]

Inherited from Future[Prod]

Inherited from Awaitable[Prod]

Inherited from AnyRef

Inherited from Any

Ungrouped