Class AsyncResult<T>
- java.lang.Object
-
- com.smartgridready.communicator.async.callable.AsyncResult<T>
-
- Type Parameters:
T- The type of result.
public class AsyncResult<T> extends java.lang.ObjectImplements 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.StringgetDataPointName()Gets the data point name.ExecStatusgetExecStatus()Gets the process status.java.lang.StringgetProfileName()Gets the functional profile name.java.time.InstantgetRequestTime()Gets the time stamp of sending the request.java.time.InstantgetResponseTime()Gets the time stamp of getting the response.java.lang.ThrowablegetThrowable()Gets the exception that was thrown.TgetValue()Gets the result value.voidsetDataPointName(java.lang.String dataPointName)Sets the data point name.voidsetExecStatus(ExecStatus execStatus)Sets the process status.voidsetProfileName(java.lang.String profileName)Sets the functional profile name.voidsetRequestTime(java.time.Instant requestTime)Sets the time stamp of sending the request.voidsetResponseTime(java.time.Instant responseTime)Sets the time stamp of getting the response.voidsetThrowable(java.lang.Throwable throwable)Sets the exception that was thrown.voidsetValue(T value)Sets the result value.java.lang.StringtoString()
-
-
-
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:
toStringin classjava.lang.Object
-
-