public class UpdateDispatchFutureWait extends Object implements Dispatchable
UpdateDispatchFutureWait is aware of future and past dispatches: (newest) DF3 <--> DF2 <--> DF1 (oldest)
Constructor and Description |
---|
UpdateDispatchFutureWait()
Ctor - use for the first future to indicate completion.
|
UpdateDispatchFutureWait(UpdateDispatchViewBlockingWait view,
UpdateDispatchFutureWait earlier,
long msecTimeout)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
execute()
Execute dispatch.
|
boolean |
isCompleted()
Returns true if the dispatch completed for this future.
|
void |
setLater(UpdateDispatchFutureWait later)
Hand a later future to the dispatch to use for indicating completion via notify.
|
public UpdateDispatchFutureWait(UpdateDispatchViewBlockingWait view, UpdateDispatchFutureWait earlier, long msecTimeout)
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 dispatchpublic UpdateDispatchFutureWait()
public boolean isCompleted()
public void setLater(UpdateDispatchFutureWait later)
later
- is the later dispatchpublic void execute()
Dispatchable
execute
in interface Dispatchable