Interface CardRemovalWaiterNonBlockingSpi
public interface CardRemovalWaiterNonBlockingSpi
This SPI is specifically designed for plugins that don't handle card removal autonomously but
requires the sending of an APDU to detect the card removal.
When a plugin implements this SPI, the ReaderSpi.transmitApdu(byte[])
method will be called
periodically by the service when a card removal is expected. The card is considered removed when
the transmission fails.
The value returned by the getCardRemovalMonitoringSleepDuration()
will be used as an
argument to Thread.sleep(long)
between two calls to ReaderSpi.transmitApdu(byte[])
.
A typical example of readers conforming to this mode of operation are terminals embedding a slave RF communication module without card presence feature.
- Since:
- 2.2.0
-
Method Summary
Modifier and TypeMethodDescriptionint
Provides the value of the sleep duration (in milliseconds) inserted between two calls toReaderSpi.transmitApdu(byte[])
.
-
Method Details
-
getCardRemovalMonitoringSleepDuration
int getCardRemovalMonitoringSleepDuration()Provides the value of the sleep duration (in milliseconds) inserted between two calls toReaderSpi.transmitApdu(byte[])
.- Returns:
- A positive value (0 is allowed).
- Since:
- 2.2.0
-