|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.multiverse.api.Listeners
public final class Listeners
A immutable single-linked list for storing listener-latches.
Structure is thread-safe and designed to be used in a CAS-loop.
| Constructor Summary | |
|---|---|
Listeners(Latch listener,
Listeners next)
|
|
| Method Summary | |
|---|---|
Latch |
getListener()
Returns the listener Latch stored in this ListenerNode. |
Listeners |
getNext()
Gets the next ListenerNode or null if this ListerNode is the end of the line. |
void |
openAll()
Opens all listeners. |
static void |
openAll(Listeners[] arrayOfListeners)
Opens all listeners. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Listeners(Latch listener,
Listeners next)
| Method Detail |
|---|
public Latch getListener()
public Listeners getNext()
public void openAll()
public static void openAll(Listeners[] arrayOfListeners)
arrayOfListeners - the array of Listeners.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||