|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.core.service.UpdateDispatchFutureSpin
public class UpdateDispatchFutureSpin
UpdateDispatchFutureSpin can be added to a dispatch queue that is thread-local. It represents is a stand-in for a future dispatching of a statement result to statement listeners.
UpdateDispatchFutureSpin is aware of future and past dispatches: (newest) DF3 <--> DF2 <--> DF1 (oldest), and uses a spin lock to block if required
Constructor Summary | |
---|---|
UpdateDispatchFutureSpin(TimeSourceService timeSourceService)
Ctor - use for the first future to indicate completion. |
|
UpdateDispatchFutureSpin(UpdateDispatchViewBlockingSpin view,
UpdateDispatchFutureSpin earlier,
long msecTimeout,
TimeSourceService timeSourceService)
Ctor. |
Method Summary | |
---|---|
void |
execute()
Execute dispatch. |
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 UpdateDispatchFutureSpin(UpdateDispatchViewBlockingSpin view, UpdateDispatchFutureSpin earlier, long msecTimeout, TimeSourceService timeSourceService)
view
- is the blocking dispatch view through which to execute a dispatchearlier
- is the older futuremsecTimeout
- is the timeout period to wait for listeners to complete a prior dispatchtimeSourceService
- time source providerpublic UpdateDispatchFutureSpin(TimeSourceService timeSourceService)
timeSourceService
- time source providerMethod Detail |
---|
public boolean isCompleted()
public void execute()
Dispatchable
execute
in interface Dispatchable
|
© 2006-2015 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 |