akka.contrib.pattern

WorkList

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.

T

The type of the item

Linear Supertypes
AnyRef, Any
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. WorkList
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by any2stringfmt
  3. by any2ArrowAssoc
  4. by any2Ensuring
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new WorkList()

Value Members

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

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

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

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

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

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

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

    Definition Classes
    Any
  8. def add(ref: T, permanent: Boolean): WorkList[T]

    Appends an entry to the work list.

    Appends an entry to the work list.

    ref

    The entry.

    returns

    The updated work list.

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

    Appends another WorkList to this WorkList.

    Appends another WorkList to this WorkList.

    other

    The other WorkList

    returns

    This WorkList

  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. def clone(): AnyRef

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

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

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

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

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

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

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

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

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

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

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

  23. final def isInstanceOf[T0]: Boolean

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

    Definition Classes
    AnyRef
  25. final def notify(): Unit

    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

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

    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.

  28. def remove(ref: T): Boolean

    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.

  29. def removeAll(): Boolean

    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.

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

    Definition Classes
    AnyRef
  31. var tail: Entry[T]

  32. def toString(): String

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

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

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

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

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

Shadowed Implicit Value Members

  1. val self: Any

    Implicit information
    This member is added by an implicit conversion from WorkList[T] to StringAdd performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (workList: StringAdd).self
    Definition Classes
    StringAdd
  2. val self: Any

    Implicit information
    This member is added by an implicit conversion from WorkList[T] to StringFormat performed by method any2stringfmt in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (workList: StringFormat).self
    Definition Classes
    StringFormat

Deprecated Value Members

  1. def x: WorkList[T]

    Implicit information
    This member is added by an implicit conversion from WorkList[T] to ArrowAssoc[WorkList[T]] performed by method any2ArrowAssoc in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (workList: ArrowAssoc[WorkList[T]]).x
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: WorkList[T]

    Implicit information
    This member is added by an implicit conversion from WorkList[T] to Ensuring[WorkList[T]] performed by method any2Ensuring in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (workList: Ensuring[WorkList[T]]).x
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from AnyRef

Inherited from Any

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

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

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

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

Ungrouped