public class UpdateDispatchFutureSpin extends Object implements com.espertech.esper.common.internal.statement.dispatch.Dispatchable
UpdateDispatchFutureSpin is aware of future and past dispatches: (newest) DF3 <--> DF2 <--> DF1 (oldest), and uses a spin lock to block if required
Constructor and Description |
---|
UpdateDispatchFutureSpin(com.espertech.esper.common.internal.schedule.TimeSourceService timeSourceService)
Ctor - use for the first future to indicate completion.
|
UpdateDispatchFutureSpin(UpdateDispatchViewBlockingSpin view,
UpdateDispatchFutureSpin earlier,
long msecTimeout,
com.espertech.esper.common.internal.schedule.TimeSourceService timeSourceService)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
execute() |
boolean |
isCompleted()
Returns true if the dispatch completed for this future.
|
public UpdateDispatchFutureSpin(UpdateDispatchViewBlockingSpin view, UpdateDispatchFutureSpin earlier, long msecTimeout, com.espertech.esper.common.internal.schedule.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(com.espertech.esper.common.internal.schedule.TimeSourceService timeSourceService)
timeSourceService
- time source providerCopyright © 2005–2018. All rights reserved.