Class BaseCallable<T>

  • Type Parameters:
    T - the result type
    All Implemented Interfaces:
    java.util.concurrent.Callable<AsyncResult<T>>
    Direct Known Subclasses:
    DeviceReadCallable, DeviceWriteCallable

    public abstract class BaseCallable<T>
    extends java.lang.Object
    implements java.util.concurrent.Callable<AsyncResult<T>>
    Base class for callable methods on SGr devices.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String dataPointName
      The data point name.
      protected java.lang.String profileName
      The functional profile name.
      protected AsyncResult<T> result
      The execution result.
    • Constructor Summary

      Constructors 
      Constructor Description
      BaseCallable​(java.lang.String profileName, java.lang.String dataPointName)
      Constructs a new instance.
    • Field Detail

      • profileName

        protected final java.lang.String profileName
        The functional profile name.
      • dataPointName

        protected final java.lang.String dataPointName
        The data point name.
      • result

        protected final AsyncResult<T> result
        The execution result.
    • Constructor Detail

      • BaseCallable

        public BaseCallable​(java.lang.String profileName,
                            java.lang.String dataPointName)
        Constructs a new instance.
        Parameters:
        profileName - the functional profile name
        dataPointName - the data point name
    • Method Detail

      • call

        public AsyncResult<T> call()
        Specified by:
        call in interface java.util.concurrent.Callable<T>
      • getProfileName

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

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