|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.core.InsertIntoLatchSpin
public class InsertIntoLatchSpin
A spin-locking implementation of a latch for use in guaranteeing delivery between a single event produced by a single statement and consumable by another statement.
Constructor Summary | |
---|---|
InsertIntoLatchSpin(InsertIntoLatchSpin earlier,
long msecTimeout,
Object payload,
TimeSourceService timeSourceService)
Ctor. |
|
InsertIntoLatchSpin(TimeSourceService timeSourceService)
Ctor - use for the first and unused latch to indicate completion. |
Method Summary | |
---|---|
Object |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InsertIntoLatchSpin(InsertIntoLatchSpin earlier, long msecTimeout, Object payload, TimeSourceService timeSourceService)
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 delivertimeSourceService
- time source providerpublic InsertIntoLatchSpin(TimeSourceService timeSourceService)
timeSourceService
- time source providerMethod Detail |
---|
public boolean isCompleted()
public Object await()
public void done()
|
© 2007 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |