public class InsertIntoLatchWait extends Object implements InsertIntoLatch
Constructor and Description |
---|
InsertIntoLatchWait(InsertIntoLatchFactory factory)
Ctor - use for the first and unused latch to indicate completion.
|
InsertIntoLatchWait(InsertIntoLatchFactory factory,
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.
|
EventBean |
getEvent() |
InsertIntoLatchFactory |
getFactory() |
boolean |
isCompleted()
Returns true if the dispatch completed for this future.
|
void |
setEvent(EventBean event) |
void |
setLater(InsertIntoLatchWait later)
Hand a later latch to use for indicating completion via notify.
|
public InsertIntoLatchWait(InsertIntoLatchFactory factory, 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 deliverfactory
- the factory originating the latchpublic InsertIntoLatchWait(InsertIntoLatchFactory factory)
factory
- the latch factorypublic boolean isCompleted()
public void setLater(InsertIntoLatchWait later)
later
- is the later latchpublic EventBean await()
public void done()
public InsertIntoLatchFactory getFactory()
getFactory
in interface InsertIntoLatch
public void setEvent(EventBean event)
setEvent
in interface InsertIntoLatch
public EventBean getEvent()
getEvent
in interface InsertIntoLatch
Copyright © 2005–2022. All rights reserved.