org.positronicnet.facility

WorkerThread

trait WorkerThread extends AppFacility

Mixin for AppFacility which provides a "worker thread", which may be used to run things in the background.

Linear Supertypes
AppFacility, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. WorkerThread
  2. AppFacility
  3. AnyRef
  4. Any
Visibility
  1. Public
  2. All

Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  7. def assertOnThread (s: String): Unit

    Throws an assertion error if called from anywhere but this activity's thread.

  8. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  9. def close : Unit

    Close the facility.

    Close the facility.

    First, decrements the "nested open" count. If it has reached zero, do a "real" close, using the protected realclose method. Otherwise, some other activity is still using the facility, and it stays open.

    When the last activity or service calls close, the facility actually does shut down, using the protected realClose method, which will shut down threads, close files, or whatever.

    Definition Classes
    AppFacility
  10. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  11. def equals (arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  12. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  13. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef
  14. def getLogTag : String

    Tag for the facility to use in log entries

    Tag for the facility to use in log entries

    Definition Classes
    AppFacility
  15. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  16. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  17. def log (s: String): AnyVal

    Writes a debugging log method, using the facility's logTag

    Writes a debugging log method, using the facility's logTag

    Definition Classes
    AppFacility
  18. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  19. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  20. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  21. def openInContext (ctx: Context): Unit

    Open the facility.

    Open the facility.

    If the facility isn't already open, does setup which depends on the particular facility (which may involve opening files, starting threads, or whatever) --- a "real" open, using the protected realOpen method. The given Context may be used for setup, depending on the nature of the facility.

    If it is already open, just increments a "nested open" count; see close below.

    Definition Classes
    AppFacility
  22. def realClose : Unit

    Attributes
    protected
    Definition Classes
    WorkerThreadAppFacility
  23. def realOpen (ctx: Context): Unit

    Attributes
    protected
    Definition Classes
    WorkerThreadAppFacility
  24. def runOnThread (func: ⇒ Unit): Unit

    Run func on the facility's thread.

  25. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  26. def toString (): String

    Definition Classes
    AnyRef → Any
  27. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AppFacility

Inherited from AnyRef

Inherited from Any