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
public static class SystemUtilities.RequestImpl extends java.lang.Object implements Request
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 Constructor Description RequestImpl(int timeout)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanblock()voidcancel()voidcheckTimeout()RequestWatchercompose(RequestWatcher... requestWatchers)protected voiddispatchFunc()voidfinishExceptionally(java.lang.Exception e)voidfinishSuccessfully(java.lang.Object value)java.lang.Objectget()java.lang.ExceptiongetError()longgetLongId()protected voidinternalOperationCompleted()protected voidinternalWait()voidonError(org.python.core.PyFunction func)voidonSuccess(org.python.core.PyFunction func)protected longstartTime()
-
-
-
Method Detail
-
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
public void finishSuccessfully(java.lang.Object value)
-
dispatchFunc
protected void dispatchFunc()
-
finishExceptionally
public void finishExceptionally(java.lang.Exception e)
-
block
public boolean block()
- Specified by:
blockin interfaceRequestWatcher
-
get
public java.lang.Object get() throws java.lang.Exception
-
compose
public RequestWatcher compose(RequestWatcher... requestWatchers)
- Specified by:
composein interfaceRequestWatcher
-
-