trait UnitTaskManager[UnitType, ResultUnit <: UnitWithNextReference, StagingAreaNotifications] extends SyncFunction
UnitTaskManager is a template designed to keep track of a kind of unit. Given a request (stored in StagingArea), there is a synchronized process which resolves the Unit and stores it into a caché. It provides the possibility to retrieve the current known unit from caché
This will process just one unit at a time
- UnitType
Type of unit that is being processed and stored
- ResultUnit
usually a wrap of UnitType with the reference for the next process [UnitWithNextReference]
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- UnitTaskManager
- SyncFunction
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Abstract Value Members
-
abstract
def
disableTasks(): Future[Unit]
- Attributes
- protected
-
abstract
def
log(msg: String, isError: Boolean = false): Unit
- Attributes
- protected
-
abstract
def
processTask(): Future[Unit]
- Attributes
- protected
-
abstract
val
repository: Repository[UnitType]
- Attributes
- protected
-
abstract
val
stagingArea: StagingArea[StagingAreaNotifications]
- Attributes
- protected
-
abstract
def
toResult(uri: String, unit: UnitType): ResultUnit
- Attributes
- protected
Concrete 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
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
changeState(newState: TaskManagerState): Unit
- Attributes
- protected
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @IntrinsicCandidate()
-
val
current: Future[Unit]
- Attributes
- protected
- def disable(): Future[Unit]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
fail(uri: String): Nothing
- Attributes
- protected
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
getNext(uri: String): Option[Future[ResultUnit]]
- Attributes
- protected
- def getUnit(uri: String): Future[ResultUnit]
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def init(): Future[Unit]
- def initialized: Future[Unit]
-
val
isInitialized: Promise[Unit]
- Attributes
- protected
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def shutdown(): Future[Unit]
- def stage(uri: String, parameter: StagingAreaNotifications): Future[Unit]
-
val
state: TaskManagerState
- Attributes
- protected
-
def
sync[T](fn: () ⇒ T): T
- Definition Classes
- SyncFunction
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated