Package opencard.core.terminal
Interface Pollable
-
- All Known Implementing Classes:
CTAPICardTerminal
,CTAPICardTerminalFactory
,CTAPIWithKeyboardCardTerminal
,SmartCardIOFactory
,SmartCardIOTerminal
public interface Pollable
This interface must be implemented by implementations ofCardTerminal
if they do not generate events when a card is inserted in or removed from the card terminal.- Author:
- Peter Trommler (trp@zurich.ibm.com), Mike Wendler (mwendler@de.ibm.com)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
poll()
Checks the status of the underlying terminal device.
-
-
-
Method Detail
-
poll
void poll() throws CardTerminalException
Checks the status of the underlying terminal device. Must generate a CardTerminalEvent if a card is being inserted or removed by calling CardTerminal.cardInserted() or CardTerminal.cardRemoved(). Alternatively the terminal could perform status checks itsself, e.g. by handling interrupts. Implementation Note: the CardTerminalRegistry calls this method of all registered Pollable terminals periodically. So the implementation of this method should not carry out lengthy operations but return as quickly as possible.- Throws:
CardTerminalException
- Thrown when error occurred in poll-mechanism.
-
-