public class InsertIntoLatchWait extends Object
Constructor and Description |
---|
InsertIntoLatchWait(InsertIntoLatchFactory factory)
Ctor - use for the first and unused latch to indicate completion.
|
InsertIntoLatchWait(InsertIntoLatchWait earlier,
long msecTimeout,
EventBean payload)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
EventBean |
await()
Blcking call that returns only when the earlier latch completed.
|
void |
done()
Called to indicate that the latch completed and a later latch can start.
|
boolean |
isCompleted()
Returns true if the dispatch completed for this future.
|
void |
setLater(InsertIntoLatchWait later)
Hand a later latch to use for indicating completion via notify.
|
public InsertIntoLatchWait(InsertIntoLatchWait earlier, long msecTimeout, EventBean payload)
earlier
- the latch before this latch that this latch should be waiting formsecTimeout
- the timeout after which delivery occurspayload
- the payload is an event to deliverpublic InsertIntoLatchWait(InsertIntoLatchFactory factory)
factory
- the latch factorypublic boolean isCompleted()
public void setLater(InsertIntoLatchWait later)
later
- is the later latchpublic EventBean await()
public void done()