Trait

de.sciss.processor.impl

ProcessorImpl

Related Doc: package impl

Permalink

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

    Permalink

    The main processing body.

    The main processing body.

    Attributes
    protected

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def abort(): Unit

    Permalink

    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

    Permalink

    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

    Permalink
    Definition Classes
    ModelImpl → Model
  7. def andThen[U](pf: PartialFunction[Try[Prod], U])(implicit executor: ExecutionContext): Future[Prod]

    Permalink
    Definition Classes
    Future
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. final def await[B](that: ProcessorLike[B, Any], offset: Double = 0.0, weight: Double = 1.0): B

    Permalink
    Attributes
    protected
  10. final def checkAborted(): Unit

    Permalink

    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

    Permalink

    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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. def collect[S](pf: PartialFunction[Prod, S])(implicit executor: ExecutionContext): Future[S]

    Permalink
    Definition Classes
    Future
  14. final def dispatch(update: Update[Prod, Repr]): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    ModelImpl
  15. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  17. implicit final def executionContext: ExecutionContext

    Permalink

    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]

    Permalink
    Definition Classes
    Future
  19. def fallbackTo[U >: Prod](that: Future[U]): Future[U]

    Permalink
    Definition Classes
    Future
  20. def filter(p: (Prod) ⇒ Boolean)(implicit executor: ExecutionContext): Future[Prod]

    Permalink
    Definition Classes
    Future
  21. def finalize(): Unit

    Permalink
    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]

    Permalink
    Definition Classes
    Future
  23. def foreach[U](f: (Prod) ⇒ U)(implicit executor: ExecutionContext): Unit

    Permalink
    Definition Classes
    Future
  24. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  25. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  26. def isCompleted: Boolean

    Permalink
    Definition Classes
    FutureProxy → Future
  27. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  28. def map[S](f: (Prod) ⇒ S)(implicit executor: ExecutionContext): Future[S]

    Permalink
    Definition Classes
    Future
  29. def mapTo[S](implicit tag: ClassTag[S]): Future[S]

    Permalink
    Definition Classes
    Future
  30. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  31. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  32. def notifyAborted(): Unit

    Permalink

    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
  33. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  34. def onComplete[U](func: (Try[Prod]) ⇒ U)(implicit executor: ExecutionContext): Unit

    Permalink
    Definition Classes
    FutureProxy → Future
  35. def onFailure[U](pf: PartialFunction[Throwable, U])(implicit executor: ExecutionContext): Unit

    Permalink
    Definition Classes
    Future
  36. def onSuccess[U](pf: PartialFunction[Prod, U])(implicit executor: ExecutionContext): Unit

    Permalink
    Definition Classes
    Future
  37. final def peerFuture: Future[Prod]

    Permalink
    Attributes
    protected
    Definition Classes
    ProcessorImplFutureProxy
  38. final def progress: Double

    Permalink

    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
  39. val progressResolution: Int

    Permalink

    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
  40. final def progress_=(f: Double): Unit

    Permalink

    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
  41. def ready(atMost: Duration)(implicit permit: CanAwait): ProcessorImpl.this

    Permalink
    Definition Classes
    FutureProxy → Awaitable
  42. def recover[U >: Prod](pf: PartialFunction[Throwable, U])(implicit executor: ExecutionContext): Future[U]

    Permalink
    Definition Classes
    Future
  43. def recoverWith[U >: Prod](pf: PartialFunction[Throwable, Future[U]])(implicit executor: ExecutionContext): Future[U]

    Permalink
    Definition Classes
    Future
  44. def releaseListeners(): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    ModelImpl
  45. def removeListener(pf: Listener[Update[Prod, Repr]]): Unit

    Permalink
    Definition Classes
    ModelImpl → Model
  46. def result(atMost: Duration)(implicit permit: CanAwait): Prod

    Permalink
    Definition Classes
    FutureProxy → Awaitable
  47. final def start()(implicit executionContext: ExecutionContext): Unit

    Permalink
    Definition Classes
    ProcessorImplPrepared
  48. def startListening(): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    ModelImpl
  49. def stopListening(): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    ModelImpl
  50. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  51. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  52. def transform[S](s: (Prod) ⇒ S, f: (Throwable) ⇒ Throwable)(implicit executor: ExecutionContext): Future[S]

    Permalink
    Definition Classes
    Future
  53. def value: Option[Try[Prod]]

    Permalink
    Definition Classes
    FutureProxy → Future
  54. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  55. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  56. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  57. final def withFilter(p: (Prod) ⇒ Boolean)(implicit executor: ExecutionContext): Future[Prod]

    Permalink
    Definition Classes
    Future
  58. def zip[U](that: Future[U]): Future[(Prod, U)]

    Permalink
    Definition Classes
    Future

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