All Implemented Interfaces:
Runnable

public class ReadValue extends JposInputRequest
Output request executor for ElectronicValueRW method ReadValue.
  • Constructor Details

    • ReadValue

      public ReadValue(ElectronicValueRWProperties props, int sequenceNumber, int timeout)
      Constructor. Stores given parameters for later use.
      Parameters:
      props - Property set of device service.
      sequenceNumber - Sequence number, any value.
      timeout - operation timeout.
  • Method Details

    • getSequenceNumber

      public int getSequenceNumber()
      Returns copy of sequenceNumber parameter (any value)
      Returns:
      The sequence number.
    • getTimeout

      public int getTimeout()
      Returns copy of maximum waiting time parameter (operation timeout).
      Returns:
      Maximum waiting time.
    • invoke

      public void invoke() throws jpos.JposException
      Description copied from class: JposOutputRequest
      Invokes the command. Must be implemented in derived class. Calls finished() to wake up potentially waiting threads.
      Overrides:
      invoke in class JposOutputRequest
      Throws:
      jpos.JposException - JposException thrown by the command to be executed.