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 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 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)
      Specified by:
      onSuccess in interface Request
    • onError

      public void onError(org.python.core.PyFunction func)
      Specified by:
      onError in interface Request
    • startTime

      protected long startTime()
    • internalWait

      protected void internalWait()
    • internalOperationCompleted

      protected void internalOperationCompleted()
    • finishSuccessfully

      public void finishSuccessfully(Object value)
    • dispatchFunc

      protected void dispatchFunc()
    • finishExceptionally

      public void finishExceptionally(Exception e)
    • block

      public boolean block()
      Specified by:
      block in interface RequestWatcher
    • get

      public Object get() throws Exception
      Specified by:
      get in interface Request
      Throws:
      Exception
    • cancel

      public void cancel()
      Specified by:
      cancel in interface Request
    • getError

      public Exception getError()
      Specified by:
      getError in interface Request
    • compose

      public RequestWatcher compose(RequestWatcher... requestWatchers)
      Specified by:
      compose in interface RequestWatcher