Class SystemUtilities.RequestImpl
java.lang.Object
com.inductiveautomation.ignition.common.script.builtin.SystemUtilities.RequestImpl
- All Implemented Interfaces:
Request,RequestWatcher
- Direct Known Subclasses:
DesignerSystemUtilities.SendRequestManager.ClientRequest
- Enclosing class:
- SystemUtilities
This is the base implementation of the "Result" object of system.util.sendRequestAsync. The client version
overrides it to do a few special things, but most of the work is done here.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanblock()voidcancel()voidcompose(RequestWatcher... requestWatchers) protected voidvoidvoidfinishSuccessfully(Object value) get()getError()longprotected voidprotected voidvoidonError(org.python.core.PyFunction func) voidonSuccess(org.python.core.PyFunction func) protected long
-
Constructor Details
-
RequestImpl
public RequestImpl(int timeout)
-
-
Method Details
-
getLongId
public long getLongId() -
checkTimeout
public void checkTimeout() -
onSuccess
public void onSuccess(org.python.core.PyFunction func) -
onError
public void onError(org.python.core.PyFunction func) -
startTime
protected long startTime() -
internalWait
protected void internalWait() -
internalOperationCompleted
protected void internalOperationCompleted() -
finishSuccessfully
-
dispatchFunc
protected void dispatchFunc() -
finishExceptionally
-
block
public boolean block()- Specified by:
blockin interfaceRequestWatcher
-
get
-
cancel
public void cancel() -
getError
-
compose
- Specified by:
composein interfaceRequestWatcher
-