Interface CardInsertionWaiterNonBlockingSpi
-
public interface CardInsertionWaiterNonBlockingSpiThis SPI is specifically designed for plugins that don't handle card insertion autonomously but requires an external active stimulation to detect card insertion without implementing a waiting mechanism.When a plugin implements this SPI, the
ReaderSpi.checkCardPresence()method will be called periodically by the service when a card insertion is expected.The value returned by the
getCardInsertionMonitoringSleepDuration()will be used as an argument toThread.sleep(long)between two calls toReaderSpi.checkCardPresence().A typical example of readers conforming to this mode of operation are terminals embedding a slave RF communication module.
- Since:
- 2.2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetCardInsertionMonitoringSleepDuration()Provides the value of the sleep duration (in milliseconds) inserted between two calls toReaderSpi.checkCardPresence().
-
-
-
Method Detail
-
getCardInsertionMonitoringSleepDuration
int getCardInsertionMonitoringSleepDuration()
Provides the value of the sleep duration (in milliseconds) inserted between two calls toReaderSpi.checkCardPresence().- Returns:
- A positive value (0 is allowed).
- Since:
- 2.2.0
-
-