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 TypeMethodDescriptionboolean
block()
void
cancel()
void
compose
(RequestWatcher... requestWatchers) protected void
void
void
finishSuccessfully
(Object value) get()
getError()
long
protected void
protected void
void
onError
(org.python.core.PyFunction func) void
onSuccess
(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:
block
in interfaceRequestWatcher
-
get
-
cancel
public void cancel() -
getError
-
compose
- Specified by:
compose
in interfaceRequestWatcher
-