net.sf.asyncobjects.asyncscala.control

RequestQueue

class RequestQueue extends AnyRef

The request queue allows serializing requests to the methods, so the next one will be executed only if previous one was completed. The queue allows to implement mutual exclusion pattern with pause and notification methods. The object is basically an event-based version of synchronized block.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. RequestQueue
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RequestQueue ()

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 awake (): Unit

    Awake operation that waits on the queue if any (like a notify() method).

    Awake operation that waits on the queue if any (like a notify() method). This method is usually called when some condition change, that awakened method could continue its work.

  8. def awaken : Promise[Unit]

    Wait until someone awake this request queue (like a wait() method)

    Wait until someone awake this request queue (like a wait() method)

    returns

    a promise that resolves when request queue is awaken

  9. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  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 hashCode (): Int

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

    Attributes
    final
    Definition Classes
    Any
  16. def ne (arg0: AnyRef): Boolean

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

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

    Attributes
    final
    Definition Classes
    AnyRef
  19. def prepend [T] (body: ⇒ Promise[T]): Promise[T]

    Run the request after this request finishes, but before any other request.

    Run the request after this request finishes, but before any other request. This method could be used for high priority tasks.

    body

    the body to run

    returns

    the promise that resolves when operation finishes

  20. def run [T] (body: ⇒ Promise[T]): Promise[T]

    Execute the body if there are no requests running, otherwise delay the request until all pending requests complete.

    Execute the body if there are no requests running, otherwise delay the request until all pending requests complete.

    body

    the body to execute

    returns

    the promise that resolves when body resolves

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

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

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

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any