public abstract class TimeoutOperation extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
TimeoutOperation.Callback |
| Constructor and Description |
|---|
TimeoutOperation(long timeout) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Function |
checker() |
protected void |
setConditionSatisfied(boolean conditionSatisfied) |
void |
start(com.google.gwt.user.client.Command command,
TimeoutOperation.Callback callback)
Executes
command until setConditionSatisfied(boolean) was called with true or
the timeout is reached. |
void |
start(DispatchAsync dispatcher,
ModelNode operation,
TimeoutOperation.Callback callback)
Executes a DMR operation and repeatedly calls
checker until setConditionSatisfied(boolean)
was called with true or the timeout is reached. |
public final void start(DispatchAsync dispatcher, ModelNode operation, TimeoutOperation.Callback callback)
checker until setConditionSatisfied(boolean)
was called with true or the timeout is reached.dispatcher - the dispatcheroperation - the DMR operation which should be executedcallback - the final callbackpublic final void start(com.google.gwt.user.client.Command command,
TimeoutOperation.Callback callback)
command until setConditionSatisfied(boolean) was called with true or
the timeout is reached.command - the command which should be executedcallback - the final callbackprotected abstract Function checker()
protected void setConditionSatisfied(boolean conditionSatisfied)
Copyright © 2014 JBoss, a division of Red Hat. All rights reserved.