Class DeviceWriteCallable<T>
- java.lang.Object
-
- com.smartgridready.communicator.async.callable.BaseCallable<T>
-
- com.smartgridready.communicator.async.callable.DeviceWriteCallable<T>
-
- Type Parameters:
T
- The type of the value written to the device.
- All Implemented Interfaces:
java.util.concurrent.Callable<AsyncResult<T>>
public class DeviceWriteCallable<T> extends BaseCallable<T>
Callable that wraps a device write command.
-
-
Field Summary
-
Fields inherited from class com.smartgridready.communicator.async.callable.BaseCallable
dataPointName, profileName, result
-
-
Constructor Summary
Constructors Constructor Description DeviceWriteCallable(WriteFunction<T> writeFunction, java.lang.String profileName, java.lang.String dataPointName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doFunctionCall()
void
setWriteValue(T writeValue)
java.lang.String
toString()
-
Methods inherited from class com.smartgridready.communicator.async.callable.BaseCallable
call, getDataPointName, getProfileName, getResult
-
-
-
-
Constructor Detail
-
DeviceWriteCallable
public DeviceWriteCallable(WriteFunction<T> writeFunction, 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
-
setWriteValue
public void setWriteValue(T writeValue)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-