Class/Object

akka.contrib.pattern

WorkList

Related Docs: object WorkList | package pattern

Permalink

class WorkList[T] extends AnyRef

Fast, small, and dirty implementation of a linked list that removes transient work entries once they are processed. The list is not thread safe! However it is expected to be reentrant. This means a processing function can add/remove entries from the list while processing. Most important, a processing function can remove its own entry from the list. The first remove must return true and any subsequent removes must return false.

Annotations
@deprecated
Deprecated

(Since version 2.5.0) Feel free to copy

Source
Aggregator.scala
Linear Supertypes
AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. WorkList
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new WorkList()

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from WorkList[T] to any2stringadd[WorkList[T]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (WorkList[T], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from WorkList[T] to ArrowAssoc[WorkList[T]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. def add(ref: T, permanent: Boolean): WorkList[T]

    Permalink

    Appends an entry to the work list.

    Appends an entry to the work list.

    ref

    The entry.

    returns

    The updated work list.

  7. def addAll(other: WorkList[T]): WorkList[T]

    Permalink

    Appends another WorkList to this WorkList.

    Appends another WorkList to this WorkList.

    other

    The other WorkList

    returns

    This WorkList

  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def ensuring(cond: (WorkList[T]) ⇒ Boolean, msg: ⇒ Any): WorkList[T]

    Permalink
    Implicit information
    This member is added by an implicit conversion from WorkList[T] to Ensuring[WorkList[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: (WorkList[T]) ⇒ Boolean): WorkList[T]

    Permalink
    Implicit information
    This member is added by an implicit conversion from WorkList[T] to Ensuring[WorkList[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: Boolean, msg: ⇒ Any): WorkList[T]

    Permalink
    Implicit information
    This member is added by an implicit conversion from WorkList[T] to Ensuring[WorkList[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean): WorkList[T]

    Permalink
    Implicit information
    This member is added by an implicit conversion from WorkList[T] to Ensuring[WorkList[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from WorkList[T] to StringFormat[WorkList[T]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  18. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  19. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  20. val head: Entry[T]

    Permalink
  21. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  22. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. def process(processFn: (T) ⇒ Boolean): Boolean

    Permalink

    Tries to process each entry using the processing function.

    Tries to process each entry using the processing function. Stops at the first entry processing succeeds. If the entry is not permanent, the entry is removed.

    processFn

    The processing function, returns true if processing succeeds.

    returns

    true if an entry has been processed, false if no entries are processed successfully.

  26. def remove(ref: T): Boolean

    Permalink

    Removes an entry from the work list

    Removes an entry from the work list

    ref

    The entry.

    returns

    True if the entry is removed, false if the entry is not found.

  27. def removeAll(): Boolean

    Permalink

    Removes all entries from this WorkList

    Removes all entries from this WorkList

    returns

    True if at least one entry is removed. False if none is removed.

  28. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  29. var tail: Entry[T]

    Permalink
  30. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  31. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. def [B](y: B): (WorkList[T], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from WorkList[T] to ArrowAssoc[WorkList[T]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from WorkList[T] to any2stringadd[WorkList[T]]

Inherited by implicit conversion StringFormat from WorkList[T] to StringFormat[WorkList[T]]

Inherited by implicit conversion Ensuring from WorkList[T] to Ensuring[WorkList[T]]

Inherited by implicit conversion ArrowAssoc from WorkList[T] to ArrowAssoc[WorkList[T]]

Ungrouped