class ProcessWrapper extends ProcessorImpl[Int, Processor[Int]] with Processor[Int]
- Alphabetic
- By Inheritance
- ProcessWrapper
- Processor
- ProcessorImpl
- FutureProxy
- ModelImpl
- Body
- Prepared
- ProcessorLike
- Model
- Future
- Awaitable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new ProcessWrapper(name: String, process: Process)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
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
Abortedevent. This method may be called repeatedly, although calling it twice does not have any particular effect.- Definition Classes
- ProcessorImpl → ProcessorLike
-
final
def
aborted: Boolean
Returns
trueif theabortmethod had been called.Returns
trueif theabortmethod had been called.- Definition Classes
- ProcessorImpl → Body
-
def
addListener(pf: Listener[Update[Int, Processor[Int]]]): pf.type
- Definition Classes
- ModelImpl → Model
-
def
andThen[U](pf: PartialFunction[Try[Int], U])(implicit executor: ExecutionContext): Future[Int]
- Definition Classes
- Future
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
final
def
await[B](that: ProcessorLike[B, Any], offset: Double = 0.0, weight: Double = 1.0): B
- Attributes
- protected
- Definition Classes
- ProcessorImpl
-
def
body(): Int
The main processing body.
The main processing body.
- Attributes
- protected
- Definition Classes
- ProcessWrapper → ProcessorImpl
-
final
def
checkAborted(): Unit
Checks if the process was aborted.
Checks if the process was aborted. If so, throws an
Abortedexception. 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 propertry ... finallyblocks, so that these resources are freed whenAbortexception is thrown. Alternatively, thecleanUpmethod can be overridden to perform such tasks.- Definition Classes
- ProcessorImpl → Body
-
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
- Definition Classes
- ProcessorImpl
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
collect[S](pf: PartialFunction[Int, S])(implicit executor: ExecutionContext): Future[S]
- Definition Classes
- Future
-
final
def
dispatch(update: Update[Int, Processor[Int]]): Unit
- Attributes
- protected
- Definition Classes
- ModelImpl
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
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
bodymethod.- Attributes
- protected
- Definition Classes
- ProcessorImpl
-
def
failed: Future[Throwable]
- Definition Classes
- Future
-
def
fallbackTo[U >: Int](that: Future[U]): Future[U]
- Definition Classes
- Future
-
def
filter(p: (Int) ⇒ Boolean)(implicit executor: ExecutionContext): Future[Int]
- Definition Classes
- Future
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
flatMap[S](f: (Int) ⇒ Future[S])(implicit executor: ExecutionContext): Future[S]
- Definition Classes
- Future
-
def
flatten[S](implicit ev: <:<[Int, Future[S]]): Future[S]
- Definition Classes
- Future
-
def
foreach[U](f: (Int) ⇒ U)(implicit executor: ExecutionContext): Unit
- Definition Classes
- Future
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
isCompleted: Boolean
- Definition Classes
- FutureProxy → Future
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
map[S](f: (Int) ⇒ S)(implicit executor: ExecutionContext): Future[S]
- Definition Classes
- Future
-
def
mapTo[S](implicit tag: ClassTag[S]): Future[S]
- Definition Classes
- Future
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
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
- Definition Classes
- ProcessWrapper → ProcessorImpl
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
onComplete[U](func: (Try[Int]) ⇒ U)(implicit executor: ExecutionContext): Unit
- Definition Classes
- FutureProxy → Future
-
final
def
peerFuture: Future[Int]
- Attributes
- protected
- Definition Classes
- ProcessorImpl → FutureProxy
-
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
- ProcessorImpl → Body → ProcessorLike
-
val
progressResolution: Int
The resolution at which progress reports are dispatched.
The resolution at which progress reports are dispatched. The default of
100means that aProcessor.Progressmessage 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
- Definition Classes
- ProcessorImpl
-
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
- ProcessorImpl → Body
-
def
ready(atMost: Duration)(implicit permit: CanAwait): ProcessWrapper.this.type
- Definition Classes
- FutureProxy → Awaitable
-
def
recover[U >: Int](pf: PartialFunction[Throwable, U])(implicit executor: ExecutionContext): Future[U]
- Definition Classes
- Future
-
def
recoverWith[U >: Int](pf: PartialFunction[Throwable, Future[U]])(implicit executor: ExecutionContext): Future[U]
- Definition Classes
- Future
-
def
releaseListeners(): Unit
- Attributes
- protected
- Definition Classes
- ModelImpl
-
def
removeListener(pf: Listener[Update[Int, Processor[Int]]]): Unit
- Definition Classes
- ModelImpl → Model
-
def
result(atMost: Duration)(implicit permit: CanAwait): Int
- Definition Classes
- FutureProxy → Awaitable
-
final
def
start()(implicit executionContext: ExecutionContext): Unit
- Definition Classes
- ProcessorImpl → Prepared
-
def
startListening(): Unit
- Attributes
- protected
- Definition Classes
- ModelImpl
-
def
stopListening(): Unit
- Attributes
- protected
- Definition Classes
- ModelImpl
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- ProcessWrapper → AnyRef → Any
-
def
transform[B](f: (Try[Int]) ⇒ Try[B])(implicit executor: ExecutionContext): Future[B]
- Definition Classes
- FutureProxy → Future
-
def
transform[S](s: (Int) ⇒ S, f: (Throwable) ⇒ Throwable)(implicit executor: ExecutionContext): Future[S]
- Definition Classes
- Future
-
def
transformWith[B](f: (Try[Int]) ⇒ Future[B])(implicit executor: ExecutionContext): Future[B]
- Definition Classes
- FutureProxy → Future
-
def
value: Option[Try[Int]]
- Definition Classes
- FutureProxy → Future
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
withFilter(p: (Int) ⇒ Boolean)(implicit executor: ExecutionContext): Future[Int]
- Definition Classes
- Future
-
def
zip[U](that: Future[U]): Future[(Int, U)]
- Definition Classes
- Future
-
def
zipWith[U, R](that: Future[U])(f: (Int, U) ⇒ R)(implicit executor: ExecutionContext): Future[R]
- Definition Classes
- Future
Deprecated Value Members
-
def
onFailure[U](pf: PartialFunction[Throwable, U])(implicit executor: ExecutionContext): Unit
- Definition Classes
- Future
- Annotations
- @deprecated
- Deprecated
(Since version 2.12.0) use
onCompleteorfailed.foreachinstead (keep in mind that they take total rather than partial functions)
-
def
onSuccess[U](pf: PartialFunction[Int, U])(implicit executor: ExecutionContext): Unit
- Definition Classes
- Future
- Annotations
- @deprecated
- Deprecated
(Since version 2.12.0) use
foreachoronCompleteinstead (keep in mind that they take total rather than partial functions)