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 boolean
block()
void
cancel()
void
checkTimeout()
RequestWatcher
compose(RequestWatcher... requestWatchers)
protected void
dispatchFunc()
void
finishExceptionally(java.lang.Exception e)
void
finishSuccessfully(java.lang.Object value)
java.lang.Object
get()
java.lang.Exception
getError()
long
getLongId()
protected void
internalOperationCompleted()
protected void
internalWait()
void
onError(org.python.core.PyFunction func)
void
onSuccess(org.python.core.PyFunction func)
protected long
startTime()
-
-
-
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:
block
in interfaceRequestWatcher
-
get
public java.lang.Object get() throws java.lang.Exception
-
compose
public RequestWatcher compose(RequestWatcher... requestWatchers)
- Specified by:
compose
in interfaceRequestWatcher
-
-