public class InsertIntoLatchSpin extends Object implements InsertIntoLatch
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.
|
EventBean |
getEvent() |
InsertIntoLatchFactory |
getFactory() |
boolean |
isCompleted()
Returns true if the dispatch completed for this future.
|
void |
setEvent(EventBean event) |
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()
public InsertIntoLatchFactory getFactory()
getFactory
in interface InsertIntoLatch
public EventBean getEvent()
getEvent
in interface InsertIntoLatch
public void setEvent(EventBean event)
setEvent
in interface InsertIntoLatch
Copyright © 2005–2022. All rights reserved.