Package akka.contrib.pattern
Class WorkList<T>
- java.lang.Object
-
- akka.contrib.pattern.WorkList<T>
-
public class WorkList<T> extends java.lang.Object
Deprecated.Feel free to copy. Since 2.5.0.Appends an entry to the work list. param: ref The entry.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WorkList.Entry<T>
Deprecated.Singly linked list entry implementation for WorkList.
-
Constructor Summary
Constructors Constructor Description WorkList()
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description WorkList<T>
add(T ref, boolean permanent)
Deprecated.Appends an entry to the work list.WorkList<T>
addAll(WorkList<T> other)
Deprecated.Appends another WorkList to this WorkList.static <T> WorkList<T>
empty()
Deprecated.WorkList.Entry<T>
head()
Deprecated.boolean
process(scala.Function1<T,java.lang.Object> processFn)
Deprecated.Tries to process each entry using the processing function.boolean
remove(T ref)
Deprecated.Removes an entry from the work listboolean
removeAll()
Deprecated.Removes all entries from this WorkListWorkList.Entry<T>
tail()
Deprecated.void
tail_$eq(WorkList.Entry<T> x$1)
Deprecated.
-
-
-
Method Detail
-
empty
public static <T> WorkList<T> empty()
Deprecated.
-
head
public WorkList.Entry<T> head()
Deprecated.
-
tail
public WorkList.Entry<T> tail()
Deprecated.
-
tail_$eq
public void tail_$eq(WorkList.Entry<T> x$1)
Deprecated.
-
add
public WorkList<T> add(T ref, boolean permanent)
Deprecated.Appends an entry to the work list.- Parameters:
ref
- The entry.permanent
- (undocumented)- Returns:
- The updated work list.
-
remove
public boolean remove(T ref)
Deprecated.Removes an entry from the work list- Parameters:
ref
- The entry.- Returns:
- True if the entry is removed, false if the entry is not found.
-
process
public boolean process(scala.Function1<T,java.lang.Object> processFn)
Deprecated.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.- Parameters:
processFn
- The processing function, returns true if processing succeeds.- Returns:
- true if an entry has been processed, false if no entries are processed successfully.
-
addAll
public WorkList<T> addAll(WorkList<T> other)
Deprecated.Appends another WorkList to this WorkList.- Parameters:
other
- The other WorkList- Returns:
- This WorkList
-
removeAll
public boolean removeAll()
Deprecated.Removes all entries from this WorkList- Returns:
- True if at least one entry is removed. False if none is removed.
-
-