Interface TaskWithEndpoint<R,C extends ModbusResultCallback,F extends ModbusFailureCallback<R>>
- Type Parameters:
R
- request typeC
- 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 Summary
Modifier and TypeMethodDescriptionGets endpoint associated with this taskGets the failure callback associated with this task, will be called in case of an errorint
Gets request associated with this taskGets the result callback associated with this task, will be called with response
-
Method Details
-
getEndpoint
ModbusSlaveEndpoint getEndpoint()Gets endpoint associated with this task- Returns:
-
getRequest
R getRequest()Gets request associated with this task- Returns:
-
getResultCallback
C getResultCallback()Gets the result callback associated with this task, will be called with response- Returns:
-
getFailureCallback
F getFailureCallback()Gets the failure callback associated with this task, will be called in case of an error- Returns:
-
getMaxTries
int getMaxTries()
-