Class DeviceReadCallable<T>
- java.lang.Object
-
- com.smartgridready.communicator.async.callable.BaseCallable<T>
-
- com.smartgridready.communicator.async.callable.DeviceReadCallable<T>
-
- Type Parameters:
T
- Type of the value returned by the device read command.
- All Implemented Interfaces:
java.util.concurrent.Callable<AsyncResult<T>>
public class DeviceReadCallable<T> extends BaseCallable<T>
Callable that wraps a device read command
-
-
Field Summary
-
Fields inherited from class com.smartgridready.communicator.async.callable.BaseCallable
dataPointName, profileName, result
-
-
Constructor Summary
Constructors Constructor Description DeviceReadCallable(ReadFunction<T> readFunction, java.lang.String profileName, java.lang.String dataPointName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doFunctionCall()
java.lang.String
toString()
-
Methods inherited from class com.smartgridready.communicator.async.callable.BaseCallable
call, getDataPointName, getProfileName, getResult
-
-
-
-
Constructor Detail
-
DeviceReadCallable
public DeviceReadCallable(ReadFunction<T> readFunction, java.lang.String profileName, java.lang.String dataPointName)
-
-
Method Detail
-
doFunctionCall
protected void doFunctionCall() throws com.smartgridready.driver.api.common.GenDriverException, RestApiResponseParseException, com.smartgridready.driver.api.modbus.GenDriverModbusException, RestApiServiceCallException, RestApiAuthenticationException, com.smartgridready.driver.api.modbus.GenDriverSocketException, java.io.IOException
- Throws:
com.smartgridready.driver.api.common.GenDriverException
RestApiResponseParseException
com.smartgridready.driver.api.modbus.GenDriverModbusException
RestApiServiceCallException
RestApiAuthenticationException
com.smartgridready.driver.api.modbus.GenDriverSocketException
java.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-