Interface TaskWithEndpoint<R,C extends ModbusResultCallback,F extends ModbusFailureCallback<R>>  
- Type Parameters:
- R- request type
- C- callback type
@NonNullByDefault
public interface TaskWithEndpoint<R,C extends ModbusResultCallback,F extends ModbusFailureCallback<R>>  
Common base interface for read and write tasks.
- Author:
- Sami Salonen - Initial contribution
- 
Method SummaryModifier and TypeMethodDescriptionGets endpoint associated with this taskGets the failure callback associated with this task, will be called in case of an errorintGets request associated with this taskGets the result callback associated with this task, will be called with response
- 
Method Details- 
getEndpointModbusSlaveEndpoint getEndpoint()Gets endpoint associated with this task- Returns:
 
- 
getRequestR getRequest()Gets request associated with this task- Returns:
 
- 
getResultCallbackC getResultCallback()Gets the result callback associated with this task, will be called with response- Returns:
 
- 
getFailureCallbackF getFailureCallback()Gets the failure callback associated with this task, will be called in case of an error- Returns:
 
- 
getMaxTriesint getMaxTries()
 
-