Interface CardInsertionWaiterNonBlockingSpi
public interface CardInsertionWaiterNonBlockingSpi
This 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 to Thread.sleep(long)
between two calls to ReaderSpi.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
Modifier and TypeMethodDescriptionint
Provides the value of the sleep duration (in milliseconds) inserted between two calls toReaderSpi.checkCardPresence()
.
-
Method Details
-
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
-