public class UpdateDispatchFutureSpin extends Object implements 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(TimeSourceService timeSourceService)
Ctor - use for the first future to indicate completion.
|
UpdateDispatchFutureSpin(UpdateDispatchViewBlockingSpin view,
UpdateDispatchFutureSpin earlier,
long msecTimeout,
TimeSourceService timeSourceService)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
execute()
Execute dispatch.
|
boolean |
isCompleted()
Returns true if the dispatch completed for this future.
|
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 providerpublic boolean isCompleted()
public void execute()
Dispatchable
execute
in interface Dispatchable