Class TransactionPrint
java.lang.Object
de.gmxhome.conrad.jpos.jpos_base.JposOutputRequest
de.gmxhome.conrad.jpos.jpos_base.posprinter.OutputRequest
de.gmxhome.conrad.jpos.jpos_base.posprinter.TransactionPrint
- All Implemented Interfaces:
Runnable
Output request executor for POSPrinter method TransactionPrint.
-
Nested Class Summary
Nested classes/interfaces inherited from class de.gmxhome.conrad.jpos.jpos_base.JposOutputRequest
JposOutputRequest.JposRequestThread
-
Field Summary
Fields inherited from class de.gmxhome.conrad.jpos.jpos_base.JposOutputRequest
Abort, AdditionalData, Device, EndSync, Exception, Finished, OutputID, Props, Waiting
-
Constructor Summary
ConstructorsConstructorDescriptionTransactionPrint(JposCommonProperties props, int station, int control)
Constructor. -
Method Summary
Modifier and TypeMethodDescriptionint
POSPrinter method TransactionPrint parameter control, see UPOS specification.int
POSPrinter method TransactionPrint parameter station, see UPOS specification.void
invoke()
Invokes the command.Methods inherited from class de.gmxhome.conrad.jpos.jpos_base.posprinter.OutputRequest
createErrorEvent, createIdleEvent
Methods inherited from class de.gmxhome.conrad.jpos.jpos_base.JposOutputRequest
abortCommand, abortCommand, catchedInvocation, clearAll, clearInput, clearOutput, countCommands, createOutputEvent, dequeue, enqueue, enqueueSynchronous, finishAsyncProcessing, finished, reactivate, reactivate, reset, run
-
Constructor Details
-
TransactionPrint
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.JposExceptionDescription copied from class:JposOutputRequest
Invokes the command. Must be implemented in derived class. Calls finished() to wake up potentially waiting threads.- Overrides:
invoke
in classJposOutputRequest
- Throws:
jpos.JposException
- JposException thrown by the command to be executed.
-