Interface CardRemovalWaiterNonBlockingSpi
-
public interface CardRemovalWaiterNonBlockingSpiThis 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 toThread.sleep(long)between two calls toReaderSpi.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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetCardRemovalMonitoringSleepDuration()Provides the value of the sleep duration (in milliseconds) inserted between two calls toReaderSpi.transmitApdu(byte[]).
-
-
-
Method Detail
-
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
-
-