Interface TaskWithEndpoint<R,C extends ModbusResultCallback,F extends ModbusFailureCallback<R>>

Type Parameters:
R - request type
C - callback type
All Known Subinterfaces:
PollTask, WriteTask

@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 Type
    Method
    Description
    Gets endpoint associated with this task
    Gets the failure callback associated with this task, will be called in case of an error
    int
     
    Gets request associated with this task
    Gets 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()