Class AsyncResult<T>

  • Type Parameters:
    T - The type of result.

    public class AsyncResult<T>
    extends java.lang.Object
    Implements an asynchronous process result.
    • Constructor Summary

      Constructors 
      Constructor Description
      AsyncResult()
      Constructs a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getDataPointName()
      Gets the data point name.
      ExecStatus getExecStatus()
      Gets the process status.
      java.lang.String getProfileName()
      Gets the functional profile name.
      java.time.Instant getRequestTime()
      Gets the time stamp of sending the request.
      java.time.Instant getResponseTime()
      Gets the time stamp of getting the response.
      java.lang.Throwable getThrowable()
      Gets the exception that was thrown.
      T getValue()
      Gets the result value.
      void setDataPointName​(java.lang.String dataPointName)
      Sets the data point name.
      void setExecStatus​(ExecStatus execStatus)
      Sets the process status.
      void setProfileName​(java.lang.String profileName)
      Sets the functional profile name.
      void setRequestTime​(java.time.Instant requestTime)
      Sets the time stamp of sending the request.
      void setResponseTime​(java.time.Instant responseTime)
      Sets the time stamp of getting the response.
      void setThrowable​(java.lang.Throwable throwable)
      Sets the exception that was thrown.
      void setValue​(T value)
      Sets the result value.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AsyncResult

        public AsyncResult()
        Constructs a new instance.
    • Method Detail

      • getProfileName

        public java.lang.String getProfileName()
        Gets the functional profile name.
        Returns:
        a string
      • setProfileName

        public void setProfileName​(java.lang.String profileName)
        Sets the functional profile name.
        Parameters:
        profileName - he functional profile name
      • getDataPointName

        public java.lang.String getDataPointName()
        Gets the data point name.
        Returns:
        a string
      • setDataPointName

        public void setDataPointName​(java.lang.String dataPointName)
        Sets the data point name.
        Parameters:
        dataPointName - the data point name
      • getThrowable

        public java.lang.Throwable getThrowable()
        Gets the exception that was thrown.
        Returns:
        an instance of Throwable
      • setThrowable

        public void setThrowable​(java.lang.Throwable throwable)
        Sets the exception that was thrown.
        Parameters:
        throwable - the exception
      • getValue

        public T getValue()
        Gets the result value.
        Returns:
        an instance of the value type
      • setValue

        public void setValue​(T value)
        Sets the result value.
        Parameters:
        value - the value
      • getRequestTime

        public java.time.Instant getRequestTime()
        Gets the time stamp of sending the request.
        Returns:
        an instance of Instant
      • setRequestTime

        public void setRequestTime​(java.time.Instant requestTime)
        Sets the time stamp of sending the request.
        Parameters:
        requestTime - the time stamp
      • getResponseTime

        public java.time.Instant getResponseTime()
        Gets the time stamp of getting the response.
        Returns:
        an instance of Instant
      • setResponseTime

        public void setResponseTime​(java.time.Instant responseTime)
        Sets the time stamp of getting the response.
        Parameters:
        responseTime - the time stamp
      • getExecStatus

        public ExecStatus getExecStatus()
        Gets the process status.
        Returns:
        an instance of ExecStatus
      • setExecStatus

        public void setExecStatus​(ExecStatus execStatus)
        Sets the process status.
        Parameters:
        execStatus - the process status
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object