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 Link icon

    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 Link icon

    • getEndpoint Link icon

      ModbusSlaveEndpoint getEndpoint()
      Gets endpoint associated with this task
      Returns:
    • getRequest Link icon

      R getRequest()
      Gets request associated with this task
      Returns:
    • getResultCallback Link icon

      C getResultCallback()
      Gets the result callback associated with this task, will be called with response
      Returns:
    • getFailureCallback Link icon

      F getFailureCallback()
      Gets the failure callback associated with this task, will be called in case of an error
      Returns:
    • getMaxTries Link icon

      int getMaxTries()