|
Spring for Apache Hadoop | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.yarn.listener.OrderedComposite<S>
S
- the type of the itempublic class OrderedComposite<S>
Composite item which can be used in other components which may want to allow automatic and annotation based ordering. Good use case is a list of listeners where user may want to place some of them to be processed before the others.
Constructor Summary | |
---|---|
OrderedComposite()
|
Method Summary | |
---|---|
void |
add(S item)
Register additional item. |
java.util.Iterator<S> |
iterator()
Public getter for the list of items. |
java.util.Iterator<S> |
reverse()
Public getter for the list of items in reverse. |
void |
setItems(java.util.List<? extends S> items)
Public setter for the listeners. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OrderedComposite()
Method Detail |
---|
public void setItems(java.util.List<? extends S> items)
items
- public void add(S item)
item
- public java.util.Iterator<S> iterator()
Ordered
items come
first, followed by any unordered ones.
public java.util.Iterator<S> reverse()
Ordered
items
come last, after any unordered ones.
|
Spring for Apache Hadoop | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |