Class TransactionPrint

All Implemented Interfaces:
Runnable

public class TransactionPrint extends OutputRequest
Output request executor for POSPrinter method TransactionPrint.
  • Constructor Details

    • TransactionPrint

      public TransactionPrint(JposCommonProperties props, int station, int control)
      Constructor. Stores given parameters for later use.
      Parameters:
      props - Property set of device service.
      station - The printer station to be used. May be either S_RECEIPT or S_SLIP.
      control - Transaction control. One of TP_TRANSACTION and TP_NORMAL.
  • Method Details

    • getStation

      public int getStation()
      POSPrinter method TransactionPrint parameter station, see UPOS specification.
      Returns:
      TransactionPrint parameter station.
    • getControl

      public int getControl()
      POSPrinter method TransactionPrint parameter control, see UPOS specification.
      Returns:
      TransactionPrint parameter control.
    • 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.