org.fusesource.hawtdispatch.package

RichDispatchQueue

class RichDispatchQueue extends Proxy with RichExecutorTrait with RichDispatchObject

Enriches the DispatchQueue interfaces with additional Scala friendly methods.

Attributes
final
Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. RichDispatchQueue
  2. RichDispatchObject
  3. RichExecutorTrait
  4. Proxy
  5. AnyRef
  6. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RichDispatchQueue (actual: DispatchQueue)

Value Members

  1. def ! [T] (func: ⇒ T): T @scala.util.continuations.cpsParam[Unit,Unit]

    Executes the supplied function on this executor.

    Executes the supplied function on this executor. If not called from a runnable being exectued in a Dispatch Queue, then is call blocks until continuation is executed. Otherwise, the continuation is resumed on the original calling dispatch queue once supplied function completes.

    Definition Classes
    RichExecutorTrait
  2. def !! [T] (func: ⇒ T @scala.util.continuations.cpsParam[Unit,Unit]): Future[T]

    Same as #future(=>T) except that the partial function is wrapped in a reset block.

    Same as #future(=>T) except that the partial function is wrapped in a reset block.

    Definition Classes
    RichExecutorTrait
  3. def != (arg0: AnyRef): Boolean

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

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

    Attributes
    final
    Definition Classes
    AnyRef → Any
  6. def << (task: Runnable): Unit

    Submits a runnable for asynchronous execution on a dispatch queue.

    Submits a runnable for asynchronous execution on a dispatch queue.

    task

    The runnable to submit to the dispatch queue.

    Definition Classes
    RichExecutorTrait
  7. def <<| (task: Runnable): RichDispatchQueue

    Submits a runnable for asynchronous execution on a dispatch queue if the queue is not currently executing, otherwise if the queue is currently executing, then the runnable is directly executed.

    Submits a runnable for asynchronous execution on a dispatch queue if the queue is not currently executing, otherwise if the queue is currently executing, then the runnable is directly executed.

    task

    The runnable to submit to execute

  8. def == (arg0: AnyRef): Boolean

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

    Attributes
    final
    Definition Classes
    Any
  10. def >>: (task: Runnable): Unit

    A right-associative version of the #<<(Runnable) method

    A right-associative version of the #<<(Runnable) method

    Definition Classes
    RichExecutorTrait
  11. def ^ (task: ⇒ Unit): Unit

    Same as #apply(=>Unit)

    Same as #apply(=>Unit)

    Definition Classes
    RichExecutorTrait
  12. val actual : DispatchQueue

    Definition Classes
    RichDispatchQueueRichDispatchObject
  13. def after (time: Long, unit: TimeUnit)(task: ⇒ Unit): Unit

    Submits a partial function for asynchronous execution on a dispatch queue after the specified time delay.

    Submits a partial function for asynchronous execution on a dispatch queue after the specified time delay.

    time

    The amount of time to delay

    unit

    The units of time the delay is specified in

    task

    The runnable to submit to the dispatch queue.

  14. def apply (task: ⇒ Unit): Unit

    Submits a partial function for asynchronous execution on a dispatch queue.

    Submits a partial function for asynchronous execution on a dispatch queue.

    Calls to #execute(Runnable) always return immediately after the runnable has been submitted, and never wait for the runnable to be executed.

    The target queue determines whether the runnable will be invoked serially or concurrently with respect to other runnables submitted to that same queue. Serial queues are processed concurrently with with respect to each other.

    The system will retain this queue until the runnable has finished.

    task

    The function to submit to the dispatch queue.

    Definition Classes
    RichExecutorTrait
  15. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  16. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  17. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  18. def equals (that: Any): Boolean

    Definition Classes
    Proxy → AnyRef → Any
  19. def execute (task: Runnable): Unit

    Attributes
    protected
    Definition Classes
    RichDispatchQueueRichExecutorTrait
  20. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  21. def flatFuture [T] (func: ⇒ Future[T]): Future[T]

    Definition Classes
    RichExecutorTrait
  22. def future [T] (func: ⇒ T): Future[T]

    Executes the supplied function on the dispatch queue and returns a Future that can be used to wait on the future result of the function.

    Executes the supplied function on the dispatch queue and returns a Future that can be used to wait on the future result of the function.

    Definition Classes
    RichExecutorTrait
  23. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef
  24. def hashCode (): Int

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

    Attributes
    final
    Definition Classes
    Any
  26. def label : String

  27. def label_= (value: String): Unit

  28. def ne (arg0: AnyRef): Boolean

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

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

    Attributes
    final
    Definition Classes
    AnyRef
  31. def repeatAfter (time: Long, unit: TimeUnit)(task: ⇒ Unit): Closeable

    Submits a partial function for repetitive asynchronous execution on a dispatch queue each time specified time delay elapses.

    Submits a partial function for repetitive asynchronous execution on a dispatch queue each time specified time delay elapses. Returns a Closable which when closed will stop future executions of the task.

    time

    The amount of time to delay

    unit

    The units of time the delay is specified in

    task

    The runnable to submit to the dispatch queue.

  32. def runnable (task: ⇒ Unit): Runnable { val target: java.lang.Runnable }

    Creates a Runnable object which executes the supplied partial function on this executor when run.

    Creates a Runnable object which executes the supplied partial function on this executor when run.

    Definition Classes
    RichExecutorTrait
  33. def self : DispatchQueue

    Definition Classes
    RichDispatchQueue → Proxy
  34. def sync [T] (func: ⇒ T): T

    Executes the supplied function on the dispatch queue while blocking the calling thread as it waits for the response.

    Executes the supplied function on the dispatch queue while blocking the calling thread as it waits for the response.

    Definition Classes
    RichExecutorTrait
  35. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  36. def target : DispatchQueue

    Definition Classes
    RichDispatchObject
  37. def target_= (queue: DispatchQueue): Unit

    Definition Classes
    RichDispatchObject
  38. def toString (): String

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

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  42. def | (task: ⇒ Unit): RichDispatchQueue

    Submits a runnable for asynchronous execution on a dispatch queue if the queue is not currently executing, otherwise if the queue is currently executing, then the runnable is directly executed.

    Submits a runnable for asynchronous execution on a dispatch queue if the queue is not currently executing, otherwise if the queue is currently executing, then the runnable is directly executed.

    task

    The runnable to submit to execute

  43. def |>>: (task: Runnable): RichDispatchQueue

    A right-associative version of the #<<|(Runnable) method

Inherited from RichDispatchObject

Inherited from RichExecutorTrait

Inherited from Proxy

Inherited from AnyRef

Inherited from Any