public class InsertIntoLatchSpin extends Object
Constructor and Description |
---|
InsertIntoLatchSpin(InsertIntoLatchFactory factory)
Ctor - use for the first and unused latch to indicate completion.
|
InsertIntoLatchSpin(InsertIntoLatchFactory factory,
InsertIntoLatchSpin earlier,
long msecTimeout,
EventBean payload)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
EventBean |
await()
Blocking 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.
|
public InsertIntoLatchSpin(InsertIntoLatchFactory factory, InsertIntoLatchSpin earlier, long msecTimeout, EventBean payload)
factory
- the latch factoryearlier
- 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 InsertIntoLatchSpin(InsertIntoLatchFactory factory)
factory
- the latch factorypublic boolean isCompleted()
public EventBean await()
public void done()